Update Hosts file in MacOS

  • Open the Hosts file with nano:
$ sudo nano /etc/hosts
  • Add the mapping and close nano with ctrl and x.

  • Flush the DNS:

$ sudo killall -HUP mDNSResponder
Author image
IT guy trying to break the IT stereotype, whilst being addicted to IT stereotypical things.