I manage web hosting on two different servers with 12 different IP addresses. Recently, I moved one site I own from one server to another. I updated the nameserver from my Godaddy account, which is where I purchased the domain name, but it can take 24-48 hours for the nameservers to propagate before the site will come up from its new location.
The problem is that I needed to start working on the new site right away, and did not have time for the nameservers to propagate. That’s when I had to solve this issue myself.With Windows, you can specify the mappings of IP addresses to host names. This way, your browser will pull the domain from the IP address you specified, so you can start using a site even before all the nameservers propagate. Here’s how it works:
Browse to C:/Windows/System 32/Drivers/Etc/hosts. You can open the file “hosts” with a text editor such as Notepad.
For example, let’s say sitefever.com was hosted on a server whose IP address was 12.345.678.901, and I decided to change my web host. Now, the new IP address is 66.117.3.249 and I want to start working on my site right away, but when I type http://sitefever.com into my browser’s address bar, it keeps taking me to my old host at 12.345.678.901 because the new nameserver has not propagated yet.
You can open the file mentioned above and type:
66.117.3.249 sitefever.com
66.117.3.249 www.sitefever.com
Save and close the file. What you just did was tell your computer that if you type sitefever.com or www.sitefever.com, you want it to point you to the IP address 66.117.3.249.
You can immediately open your browser, type in your domain name, and you will be taken to the location on your new host! Now you can start working on your site at its new location immediately, without having to wait on the nameservers to propagate.
I know that this little trick has helped me a few times in the past. Maybe it’s something that you can keep handy which can help you one day as well.
Enjoyed this article?Subscribe to SiteFever.com's Full Feed RSS to get daily updates of this blog!
Be a good sport and promote my article! - del.icio.us - Furl - Netscape - reddit - StumbleUpon





Add your comment!




(2 votes, average: 4.5 out of 5)
In the code above, if somebody tries to hotlink a gif or jpg image from your site, it will display a picture called yousteal.jpg on their site!


