Skip to content

Instantly share code, notes, and snippets.

@carlesloriente
Created August 6, 2023 14:56
Show Gist options
  • Save carlesloriente/1cf094165955b85617cd917573df65e1 to your computer and use it in GitHub Desktop.
Save carlesloriente/1cf094165955b85617cd917573df65e1 to your computer and use it in GitHub Desktop.
MacOs flushcache and kill mDNSResponder
#!/bin/bash
sudo dscacheutil -flushcache;
sudo killall -HUP mDNSResponder;
sleep 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment