Created
January 20, 2014 18:12
-
-
Save tavisto/8525649 to your computer and use it in GitHub Desktop.
A simple script to clear dns on OSX > 10.8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Clearing Cache" | |
dscacheutil -flushcache | |
sleep 3 | |
echo "Restarting mDNSResponder" | |
sudo killall -HUP mDNSResponder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment