Skip to content

Instantly share code, notes, and snippets.

@kephircheek
Created July 20, 2020 10:16
Show Gist options
  • Select an option

  • Save kephircheek/481d3b89b9fa33418ad6a8ac0032c25f to your computer and use it in GitHub Desktop.

Select an option

Save kephircheek/481d3b89b9fa33418ad6a8ac0032c25f to your computer and use it in GitHub Desktop.
Fix Tunnelblick vpn reconnection problem:`Could not resolve hostname`
#!/bin/bash
for i in {1..30}
do
# sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
done
echo "DNS cache flushed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment