Edit Hosts File OS X

How to Edit the Hosts File in Mac OS X

Most Mac users never need to access the hosts file, but this powerful file can let you do some neat things when it comes to mapping website hostnames. Here are two ways to edit your hosts file using TextEdit and the UNIX nano text editor.