Toggle Mac Wi-Fi DNS settings for using Unblock-Us.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function unblockuson() { | |
sudo networksetup -setdnsservers "Wi-Fi" 208.122.23.22 208.122.23.23 | |
sudo networksetup -setairportpower "en1" "off" | |
sudo networksetup -setairportpower "en1" "on" | |
echo "Unblock-Us: ENABLED" | |
} | |
function unblockusoff() { | |
sudo networksetup -setdnsservers "Wi-Fi" "empty" | |
sudo networksetup -setairportpower "en1" "off" | |
sudo networksetup -setairportpower "en1" "on" | |
echo "Unblock-Us: DISABLED" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment