Fake temp domain name for testing and client viewing
I have a client with a current website at
I have now uploaded that same data to my Linode slice and would like to test it from there before going live but I am not sure what domain to use.
They want to keep running
I thought I would setup
I only have the one IP assigned to my server and that is being used by four websites on my slice. I could get another IP address for $1 but that seems like a silly way to solve the issue.
Any help would be great thanks.
14 Replies
However, if you want external entities to view it you may want to have a generic domain you can use and do it with subdomains or sub directories rather than asking them to modify their hosts file.
For example:
yourcompany.mysite.com
or
mysite.com/yourcompany/
currentdomain.example.com (where example.com is your domain)
No need at all to get an additional IP, that would be a total waste. .dev isn't going to work because it's not a TLD, you'd have to create a host entry on every computer you want to connect to that domain if you did that.
For dev stuff, I generally use test.example.com or dev.example.com (where example.com is the real domain)
> I thought I would setup
Try setting it up as dev.currentdomain.com instead.
@waldo:
Use your own domain and create a sub-domain for their site.
currentdomain.example.com (where example.com is your domain)
No need at all to get an additional IP, that would be a total waste. .dev isn't going to work because it's not a TLD, you'd have to create a host entry on every computer you want to connect to that domain if you did that.
For dev stuff, I generally use test.example.com or dev.example.com (where example.com is the real domain)
Thx but how does that work if the DNS for their current domain is not pointing at linode?
@rollbahn:
Thx but how does that work if the DNS for their current domain is not pointing at linode?
It doesn't have to, just create an A record and point that to your IP address and create a vhost entry for that domain name.
Actually, dev.customerdomain.com is probably best too and you can do exactly the same thing.
customerdomain.com can be hosted anywhere and dev.customerdomain.com can be hosted any other place you desire (including Linode)
@sidney:
> I thought I would setupwww.currentdomain.dev in vhost.conf but that doesn't work.Try setting it up as dev.currentdomain.com instead.
Thx I tried that but still get [error] (EAI 2)Name or service not known: Could not resolve host name dev.currentdomain.com
<virtualhost dev.currentdomain.com:80="">ServerAdmin blah@gmail.com
ServerName dev.currentdomain.com
ServerAlias dev.currentdomain.com
DocumentRoot /srv/www/currentdomain/public_html/
ErrorLog /srv/www/currentdomain/logs/error.log
CustomLog /srv/www/currentdomain/logs/access.log combined</virtualhost>
Thanks for your help.
@waldo:
@rollbahn:Thx but how does that work if the DNS for their current domain is not pointing at linode?
It doesn't have to, just create an A record and point that to your IP address and create a vhost entry for that domain name.
Actually, dev.customerdomain.com is probably best too and you can do exactly the same thing.
customerdomain.com can be hosted anywhere and dev.customerdomain.com can be hosted any other place you desire (including Linode)
Ok great thanks - didn't know about the A record part that makes a whole lot more sense now - live and learn
I only did the "dev" record and removed the "mail" and "www" record from the A records for that domain.
Not sure what I'm missing now…
@rollbahn:
I set up the A record for "dev" under the customers domain name in the Linode DNS Manager but I am still getting "still get [error] (EAI 2)Name or service not known: Could not resolve host name dev.currentdomain.com" when I try to restart apache.
I only did the "dev" record and removed the "mail" and "www" record from the A records for that domain.
Not sure what I'm missing now…
You can't just set it up in the linode DNS manager if that's not where their DNS already resided. You need to add that A record to their current DNS host.
@waldo:
Unless you're customer's name server settings for their domain point to Linode's name servers you'll have to go to their registrar or where ever their name servers are at and create the name record there and wait for it to sync through.
Ok yeh that was my original problem as we don;t have access to do that right now.
Ok so if I setup any old domain name rather than theirs and do what ai just did for their domain name then all should work?
Can I just make up any fake domain name so long as noone else is using it? eg dev.freddy.com? Or do I ahve to own an actual domain name to use? I'm struggling a little getting my head around this bit.
Also, if you have no access to your customer's registrar to change their name server or DNS settings, you'll never get their site up on Linode (or any other provider) to begin with.
We will have access to the customer's domain very soon, they're just in a messy breakup with the clowns that are currently hosting their website. Usual story of cheap hosting gone wrong.