Skip to content

Instantly share code, notes, and snippets.

@adeolaawoyemi
Created November 9, 2010 11:38
Show Gist options
  • Save adeolaawoyemi/668990 to your computer and use it in GitHub Desktop.
Save adeolaawoyemi/668990 to your computer and use it in GitHub Desktop.
To flush the DNS cache in Mac OS X:-
#!/bin/sh
# type dscacheutil -flushcache in your terminal to flush the DNS resolver cache.
# ex: bash-2.05a$ dscacheutil -flushcache
# Once you run the command your DNS cache (in Mac OS X Leopard) will flush.
dscacheutil -flushcache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment