Last active
June 18, 2019 10:34
-
-
Save drigodwin/07e33bfda58b27d9101b39ee999c8e1b to your computer and use it in GitHub Desktop.
Sets the nameserver to Google DNS
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
${r"sudo sed -i.bak '/^nameserver /{h;s/.*/nameserver 8\.8\.8\.8/};${x;/^$/{s//nameserver 8\.8\.8\.8/;H};x}' /etc/resolv.conf"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment