Skip to content

Instantly share code, notes, and snippets.

@davej
Created September 10, 2010 19:47
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 davej/574251 to your computer and use it in GitHub Desktop.
Save davej/574251 to your computer and use it in GitHub Desktop.
Redirecting DNS by editing /etc/hosts on Mac OS X
# /etc/hosts
127.0.0.1 local.domain
123.123.123.123 www.domain.com
# In the Mac OS X terminal type:
dscacheutil -flushcache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment