Created
September 7, 2017 18:13
-
-
Save Jachimo/5e9974a5e1960ba4adff5ddc73807353 to your computer and use it in GitHub Desktop.
Mac-only commands for forcing a flush of the DNS cache
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 | |
sudo dscacheutil -flushcache | |
sudo killall -HUP mDNSResponder | |
logger "DNS cache manually flushed by $0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment