Virtual host testing without DNS referal
Something like http://173.255.1.1:domainname.com
Nothing that I try like this works.
5 Replies
173.255.1.1 domainname.com
I guess for the purposes of the testing I could give the new server a different domain name temporarily to keep the two straight.
Thanks.
Now that I know how that host file works I'm mapping all my local fixed ip address boxes - routers, network printers, DirecTV receivers, to names. Cool.
Or: create a DNS record, e.g. "dev.example.com", to point to the new IP. Tell your web server to expect traffic on dev.example.com, and it shall work. This is much more useful, especially when multiple people need to share in the hallucination.
@hoopycat:
Create a DNS record, e.g. "dev.example.com", to point to the new IP. Tell your web server to expect traffic on dev.example.com, and it shall work.
This sounds good. So if I understand it correctly, if "example.com" has a DNS record somewhere (? I'm not sure where) that points to ipaddress1 then I could create a DNS record somewhere that points dev.example.com to my Linode server at ipaddress2.
My question is where can that second DNS reference be made if I want the client to see the test site? Does it have to be with the origional domain name registrar or would it work to just use the Linode DNS service? I'm guessing I have to get to the original registrars records.
Or!, if you have another domain within your control (i.e. your main/"corporate" domain) and don't want to muck around with the existing domain at all, you can also add a record to your domain. This is handy when customers are involved, since you can fling something up without involving them at all.
Say your domain is sodtech.net, and you're working on a new site to replace example.com. You could add "example.sodtech.net" to sodtech.net's DNS, and set it up in your web server as an alias for the new example.com site.
Both approaches work just fine, and would allow the site to be visible to anyone who knows the temporary location.
(Which reminds me: you might want to set up basic authentication to "hide" the site a bit while it's under development. I use an approach not unlike the "READ ME: username is foo, password is bar" used on forum.linode.com; just enough to keep the bots out.)