Last active
October 12, 2019 19:24
-
-
Save matthewoestreich/4380ccad5c790fd633129b3311160ad2 to your computer and use it in GitHub Desktop.
Clears DNS Cache on Mac
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
#!/bin/bash | |
# HOW TO USE: | |
# bash clear.dns.cache.sh | |
dscacheutil -flushcache | |
sudo killall -HUP mDNSResponder | |
say cleared dns cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment