Skip to content

Instantly share code, notes, and snippets.

@chrispian
Created September 27, 2019 19:12
Show Gist options
  • Save chrispian/d98cbd8db68fb940386b993748f95cff to your computer and use it in GitHub Desktop.
Save chrispian/d98cbd8db68fb940386b993748f95cff to your computer and use it in GitHub Desktop.
Shell script to flush DNS on mac
#!/bin/sh
`dscacheutil -flushcache`
echo Done. DNS Restarted.
@chrispian
Copy link
Author

Just save it somewhere in you path and you can just do ./fdns from anywhere in the shell.

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