Skip to content

Instantly share code, notes, and snippets.

@drigodwin
Last active June 18, 2019 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save drigodwin/07e33bfda58b27d9101b39ee999c8e1b to your computer and use it in GitHub Desktop.
Save drigodwin/07e33bfda58b27d9101b39ee999c8e1b to your computer and use it in GitHub Desktop.
Sets the nameserver to Google DNS
${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