Mac OS X How to Add Hosts to Local Hosts File Mac OS X 10.2 or later Applications/Utilities/Terminal sudo vim /private/etc/hosts