Skip to content

Instantly share code, notes, and snippets.

@danalmeida
Last active August 29, 2015 13:56
Show Gist options
  • Save danalmeida/9180204 to your computer and use it in GitHub Desktop.
Save danalmeida/9180204 to your computer and use it in GitHub Desktop.
OS X: How to reset the DNS cache — http://support.apple.com/kb/ht5343

OS X: How to reset the DNS cache

Use the following Terminal commands to reset the DNS cache:

OS X Yosemite

sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches

OS X Mountain Lion or Lion

sudo killall -HUP mDNSResponder

Mac OS X v10.6

sudo dscacheutil -flushcache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment