Skip to content

Instantly share code, notes, and snippets.

@jellyjellyrobot
Created March 26, 2015 10:10
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 jellyjellyrobot/20da96aec8d2e3a60225 to your computer and use it in GitHub Desktop.
Save jellyjellyrobot/20da96aec8d2e3a60225 to your computer and use it in GitHub Desktop.
Mac DNS Flush
## For those times when you're too lazy to reboot and your Mac DNS client screws up.
sudo discoveryutil mdnsflushcache
sudo discoveryutil udnsflushcaches
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment