Jump to content

Changing your local Hosts file

Recommended Posts

There comes a time that the DNS server(s) do not have the name to address resolution you need so just add it to your local hosts file.

Mac OS X 10.2 or later

Edit the /private/etc/hosts file.

For more information on how to use the hosts file, open Terminal and type: man hosts

Note: Editing this file requires root privileges.

I suggest typing while in Terminal

sudo nano /private/etc/hosts

It may be a good idea to flush the DNS Cache that is running by then typing the following after you save the hosts file

dscacheutil -flushcache

Link to post
Share on other sites


  • Create New...