how to add local host file in mac os x code example Example: mac host file sudo nano /etc/hosts sudo killall -HUP mDNSResponder