Created
June 6, 2016 15:48
-
-
Save willsthompson/fc07ed777e5693794a572f63af634dfc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# | |
# OSX: Flush all the gunk out of your routing tables and DNS. | |
# | |
networksetup -setairportpower airport off; | |
for i in {1..10} | |
do | |
dscacheutil -flushcache; | |
killall -HUP mDNSResponder; | |
route -n flush; | |
done | |
networksetup -setairportpower airport on; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment