how to access my host file on mac code example Example: mac host file sudo nano /etc/hosts sudo killall -HUP mDNSResponder