How do I change my hosts file? Or, how can I see my domain before DNS changes propagate?

To see your domain on our system before a DNS change takes effect,  edit your hosts file on your PC.

If using Windows 7, click "Start", "All Programs", "Accessories" then right click on "Notepad" and select "Run as administrator" (You may need to click "Yes" for this to run with administrative privileges). To edit the hosts file click "File" and select "Open", in the "File Name" area enter "%systemroot%\system32\drivers\etc\" and click "Open". Click the drop down to the right of the "File Name" area and select "All Files". Select the "hosts" file and click "Open".

If you are using older Windows versions, use "Start", "Find", "Files and Folders" to find a file in your windows directory (or WINNT\system32\drivers\etc) called "hosts". Verify that the file is not "read only" by right clicking it, and choosing it's Properties. Then open the file for editting with Notepad. There should already be an entry for "localhost". Follow that format when you insert your domain and our IP.

On Windows98 and Windows95, the order may be 'hostname' then 'IP address'. On Windows 7, Windows2000 and WindowsME, the order is 'IP address' then 'hostname'

127.0.0.1 localhost
204.11.246.1 www.example.com

Then save this altered hosts file and close notepad. Make sure Windows did not silently save the file as "hosts.sam". The filename has to be "hosts". You may also need to reboot for the change to take effect. Next time you try to go to "www.example.com", your browser will try to find that domain at the corresponding IP instead of looking up the IP through DNS.

Mac OS 9's hosts file format is based on RFC-1035. Mac OS 9 keeps its HOSTS file in the Preferences folder under the System folder. Edit this file and add a line for each host that you would like to map an IP to:

www.example.com 204.11.246.1

To find the hosts file in OS X's graphical interface:
    1. Open Finder.

    1. In the Go menu, select "Go to Folder"

    1. Type /etc for the folder name.

    1. In the list of files that appears, you should find hosts. Double click it to open it in a text editor.

    1. As in the earlier examples, the format of the file is: "204.11.246.1 www.example.com".

On unix-based systems, as well as OS X's terminal, you can find the hosts file at /etc/hosts.

Once you have modified your hosts file, you can flush your DNS so that you can see your new changes more quickly. Depending on your OS, there are different ways to do this:
  • For Mac OS X the command is:
    lookupd -flushcache
  • For Windows the command is:
    ipconfig /flushdns
  • 6 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

May I upgrade at a later time?

Yes, you can easily upgrade your account at anytime. Simply click "upgrade" in the Client Portal...

How soon can my account be setup ?

For shared hosting services, our system will automatically activate your account and send you...

How do I backup and restore my Website and databases ? How do I move my sites from my current host to Astutium?

If your old host is also using WHM/CPanel then there is a reasonably simple procedure to move...

How Do I Create a RoR (Ruby on Rails) Application ?

To make your first RoR (Ruby on Rails) application in your Astutium Business, ECommerce or...

My website is down...

My website is down.. In a unlikely event your website is down please do check the following a,...

Powered by WHMCompleteSolution