Free PC & Web TIpsPC and Web Tips . Learn tips & trick to be more efficient when using your computer, doing web design, programming or just surfing the web. There are beginner tips and more advanced one. If you can't find what you looking for, please use the search function.

 



Monday, September 10, 2007

Viewing your website before domain propagation

If you've just changed the nameservers to point to another server for your domain, it can take up to 72 hours for the propagation to happen and for you to be able to see your website on the new host.

Another use for this tip is if you want to work on a website but aren't ready to change the nameservers and point it to the new host until you finish your work on it. With this trick, it's possible to view a site on another server without having to wait for the domain propagation to happen!

The first trick is the easiest by far, all you need to know is the IP of the server your site is now on and you just go to this website and you can preview your site before your dns (nameservers) have propagated!


In windows, the file to edit for this is called the Hosts file, it's located here usually:

C:\windows\system32\drivers\etc\HOSTS


Open this file in note pad or any text editor and add the following info at the end of the file:

xxx.xxx.xxx.xxx www.yourdomain.com
xxx.xxx.xxx.xxx yourdomain.com


The Xs reprensent the IP of the new server and of course you'd replace "yourdomain.com" with your domain name. Save your file after your changes.

This will allow you to view your website on the new host but remember, you're the only one that's viewing it there, the rest of the world is still viewing it on the old host until the domain propagates throughout the web.

To reverse this you simply open that file again and remove your entries. You can have more than one set of entries, if you need to create more, just enter them one bellow the other.

In OSX it's a bit different but here is the command you would type in the terminal:

sudo echo "xxx.xxx.xxx.xxx www.yourdomain.com" >> /etc/hosts

Labels: domain not propagated, viewing domain before propagation, viewing site before domain propagates, website tips

If you would like to give a little something, you can use the paypal button below:
posted by Franco at 11:39 PM

0 Comments:

Post a Comment

<< Home

Previous Posts

  • How To Copy And Paste Text

Powered by Blogger