Last active
April 1, 2018 15:38
-
-
Save dknecht/4582d16021f032c336610948c6ad5f6f to your computer and use it in GitHub Desktop.
bash <(curl -# https://gist.github.com/dknecht/4582d16021f032c336610948c6ad5f6f/raw/63450124ee79911654c1c9d480f99ab4b7138313/setdns1111.sh)
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
#!/usr/bin/env bash | |
while read iface; do | |
networksetup -setdnsservers "${iface}" 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 | |
done < <(networksetup -listallnetworkservices | grep -v '*') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment