I'm in the process of migrating from a PC at work to a new iMac. There are a few servers with names that don't resolve properly. These were stored in the hosts file on windows.
On OSX it's stored in
The file is read only so you'll want to open it with sudo before bringing it into vim, or however you plan to do it with a GUI editor.