Skip to content

Instantly share code, notes, and snippets.

@danmactough
Created September 9, 2014 04:25
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 danmactough/088ac82834d9dde6ddd3 to your computer and use it in GitHub Desktop.
Save danmactough/088ac82834d9dde6ddd3 to your computer and use it in GitHub Desktop.
Supposedly, this will flush your dns cache on Mac OS X Mountain Lion and greater
#!/bin/bash
if [[ $OSTYPE == darwin* ]]; then
sudo killall -HUP mDNSResponder
fi
@rovolution
Copy link

👍

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