How to edit your OS X hosts file – the command in Terminal: sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts