Skip to content

Instantly share code, notes, and snippets.

@turadg
Last active October 29, 2022 22:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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