Skip to content

Instantly share code, notes, and snippets.

@gustavohenrique
Created October 15, 2019 20:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavohenrique/7f6dc909f00e9a9e61d6a063bd86d5a5 to your computer and use it in GitHub Desktop.
Save gustavohenrique/7f6dc909f00e9a9e61d6a063bd86d5a5 to your computer and use it in GitHub Desktop.
Flush DNS

Mac:

sudo killall -HUP mDNSResponder; say dns cleared successfully

Linux:

sudo /etc/init.d/dnsmasq restart
sudo /etc/init.d/nscd restart
sudo /etc/init.d/named restart

Windows:

ipconfig /flushdns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment