How to update HOSTS file and what it help?

Expand / Collapse
 
     

How to update HOSTS file and what it help?


It takes times for you to register or transfer your domain to us due to DNS propagation. During these moment, your domains do not point to our server yet. However you can still build your site and perform the test by simply modifying the HOSTS file in your local machine. After that, your browser resolves your domain into our IP temporary.

To update your host file, please follow the steps below.

  1. find the HOSTS file
    • Windows 95/98/Me :  c:\windows\hosts
    • Windows NT/2000/XP : c:\winnt\system32\drivers\etc\hosts
    • Windows XP Home : c:\windows\system32\drivers\etc\hosts
    • Linux and other Unix-like operating systems: /etc/hosts
    • Mac OS 9 and earlier: System Folder: Preferences or System folder (format of the file may vary from Windows and Linux counterparts)
    • Mac OS X: /private/etc (uses BSD-style Hosts file)
    • OS/2 and eComStation: "bootdrive":\mptn\etc\hosts
    • Symbian 1st/2nd edition phones: C:\system\data\hosts
    • Symbian 3rd edition phones: C:\private\10000882\hosts, only accessible with file browsers with AllFiles capability, most are not.
  2. You should be able to find a file called "hosts", use notepad to open it
  3. You should be able to find a line "127.0.0.1       localhost" in the end of the file. Press "enter" to go to next line.
  4. Add the record you want. For example. "216.10.242.101   www.mydomain.com". Then saved.
  5. Now when you browse www.mydomain.com in your computer, it will go to the IP 216.10.242.101. (Please note that www.mydomain.com is different from mydomain.com)
Please remember to delete the lines you added after your test.


Tags:




Add Your Comments


Name: *
Email Address:
Web Address:
Verification Code:
*
 

Details
Last Modified:2/5/2009 6:49 PM
Last Modified By: Mark
Type: FAQ
Article not rated yet.
Article has been viewed 2,455 times.
Options