Skip to content

Instantly share code, notes, and snippets.

@csloz
Last active October 22, 2019 06:52
Show Gist options
  • Save csloz/c1bf09bc0d7d31a47689bfdf6737c992 to your computer and use it in GitHub Desktop.
Save csloz/c1bf09bc0d7d31a47689bfdf6737c992 to your computer and use it in GitHub Desktop.
OS X DNS flusher for all OS X versions > 11
#!/bin/sh
# OS X DNS flusher for all OS X versions > 11
# Author: L. Sheed
sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache
/usr/bin/say "DNS, she is flushed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment