Skip to content

Instantly share code, notes, and snippets.

@jay-lannister
Created November 22, 2014 11:18
Show Gist options
  • Save jay-lannister/f6849b8e97d88fd59214 to your computer and use it in GitHub Desktop.
Save jay-lannister/f6849b8e97d88fd59214 to your computer and use it in GitHub Desktop.
How to Flush DNS Cache in OS X Yosemite with discoveryutil
# ref: http://osxdaily.com/2014/11/20/flush-dns-cache-mac-os-x/
# Clear MDNS Cache
sudo discoveryutil mdnsflushcache
# Clear UDNS Cache
sudo discoveryutil udnsflushcaches
# Flush and Reset All DNS Caches in OS X Yosemite
sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment