Skip to content

Instantly share code, notes, and snippets.

@turadg
Last active June 25, 2024 17:04
Show Gist options
  • Save turadg/7876784 to your computer and use it in GitHub Desktop.
Save turadg/7876784 to your computer and use it in GitHub Desktop.
# Hard-code DNS resolver to Google's servers
#
# *Setup*
# # download this file while DNS is working
# curl https://gist.github.com/turadg/7876784/raw --output ~/google-resolv.conf
# # replace your old DNS resolver
# sudo cp /etc/resolv.conf /etc/resolv.conf.auto && sudo mv ~/google-resolv.conf /etc/resolv.conf
# # make it uneditable so Vagrant doesn't clobber it
# sudo chattr +i /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment