Sometimes after too much traffic on our sites, we need to move several of them or maybe just only one site. After buy a new hosting usually it need a propagation when we change the DNS. So the problem is how to preview or we want to know the result of our sites on new server?

If you never access the sites, it’s need only 15 minutes to know the result on new server. But if you everyday access the sites, you must wait at least 12 hours. I think it’s too long and how do you know if your sites is working properly on the new server? Now you don’t have to worry about it. Here is the steps how to preview your sites without changing the DNS.
Common locations of the ‘hosts’ file:
Windows 95/98/Me: c:\windows\hosts
Windows NT/2000: c:\winnt\system32\drivers\etc\hosts
Windows XP (Home OR Pro): c:\windows\system32\drivers\etc\hosts (you may need administrator access for Windows NT/2000/XP)
NOTE: ‘hosts’ is the name of the file and not another directory name.
It does not have an extension (eg: .exe, .txt, .doc, etc.)
1) Copy the location to your ‘hosts’ file from the respective Operating System above
2) Open Windows Notepad (Start -> All Programs -> Accessories -> Notepad)
3) Click on the File menu and choose Open…
4) Paste that location into the File name: field and click the Open button
5) Start on a new line at the bottom of the file
6) Type the IP address, hit the TAB key, then type the domain
7) Save the file and close all open browsers before attempting to browse to the domain.
The line to add:
IPGOESHERE domain.com www.domain.com domain2.com www.domain2.com
Replace IPGOESHERE with the IP address listed for the accounts in WHM, replace domain.com and domain2.com with your actual domain names. Additional domains, sub-domains or addon domains can be added at the end of the line separated by spaces.
Remember, this is only a temporary fix, so once your registrar has the updated information and DNS is fully propagated, you will need to remove any lines you added to the ‘hosts’ file.
NOTE: this ONLY works on the computer where you changed the ‘hosts’ file.
This tutorial credit for Mikael N. (Senior Transfer Administrator of Hostgator).
Related Posts:
Get into No.1 Position on Search Engine in 5 Minutes
How to Protect From Hot Link Images
Domain Baru atau Subdomain?
Efek Cerai Yang Bikin Happy
Bali, the Earthly Paradise Translate into German Version
Posted on Thursday, 9th July 2009 in Case Study | Comments (1)



July 10th, 2009 at 7:03 am
how about this?
go to address bar
just type:
IPGOESHERE/~xxxx
xxxx= your username that you’ve created on WHM