Skip to content

Instantly share code, notes, and snippets.

@bstonedev
Created February 12, 2023 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstonedev/b84b393b95b045528da6910ded7dcf2d to your computer and use it in GitHub Desktop.
Save bstonedev/b84b393b95b045528da6910ded7dcf2d to your computer and use it in GitHub Desktop.
Mac OS - Terminal Commands to Edit Etc/Hosts File and Flush DNS Cache
sudo nano /etc/hosts
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment