Skip to content

Instantly share code, notes, and snippets.

@toantran-ea
Last active June 30, 2018 06:50
Show Gist options
  • Save toantran-ea/4dd1dee4a84282d7ddd30385003906e7 to your computer and use it in GitHub Desktop.
Save toantran-ea/4dd1dee4a84282d7ddd30385003906e7 to your computer and use it in GitHub Desktop.
Clear dns cache when there is problem switching vpn tunnel
sudo ifconfig en0 down # take the networking interface down
sudo route flush # flush the route table
sudo ifconfig en0 up # take the interface back online
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment