Contact Us

How many eyes does a typical person have?
Email:
Subject:
Message:
 
How to edit a hosts file - WINDOWS Print E-mail

How to Edit Hosts File

For various reasons it may be necessary to update the hosts file on your computer to properly resolve a web site by its domain name. The most common reason for this is to allow people to view or publish web content immediately after purchasing a new domain name or transferring an existing domain name to Sonnar Internet Inc. hosting.

New and transferred domain names have a delay period that can be anywhere from a few hours to a few days. During this period of time the new or transferred domain information propagates around the internet, and is generally unavailable.
If you need to update your site immediately and cannot wait for the propagation of domain information around the internet, you can edit a file on your computer as a temporary work around.

Please note: this work around is only valid on the computer on which the change was made. It will NOT make the web site available to anyone on the internet.

 

Windows operating systems contain a file called 'hosts' that will force resolution of your domain name.

Step by step process of editing hosts file

  1. Open the hosts file
    1. Go to the Start menu and choose RunType the following in the Run dialog box:
      For Windows NT and 2000: C:\winnt\system32\drivers\etc
      1. For Windows XP / VISTA: C:\windows\system32\drivers\etc
    2. Click the OK button (This should open a window with several files in it.)
    3. Find the file called 'Hosts' and double–click it. If prompted, specify that you would like tochoose a program to open the file with from a list of programs.
      1. Choose 'Notepad' from the list of available programs.
  2. Edit and save the hosts file
    1. Start typing on a new line at the bottom of the file.
      1. To do so, place your cursor at the very end of the last line and hit 'Enter' to start a new line.
    2. Type these two lines of text like this example: 
      (use your server IP address and your site domain in–place of the defaults below)
      1. 123.123.123.123 yourdomainname.com
      2. 123.123.123.123 www.yourdomainname.com
    3. Close the Hosts file and save it when prompted.
    4. PLEASE NOTE: At this point you should be able to view and publish to your web site using your domain name. After 3–4 days, you will want to undo this change to the host file so that you can check to see that your domain name is now resolving without assistance over the internet.
  3. Undo the Hosts file change (after you have confirmed that it is resolving properly)
    1. Open the Hosts file as described above.
    2. Delete the information that you added before and close the file.
    3. Choose to save the changes to the file when asked.

 

 

 
 

Copyright 2008-2009 Sonnar Internet Inc. Privacy Policy