Last active
June 25, 2024 17:04
-
-
Save turadg/7876784 to your computer and use it in GitHub Desktop.
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
# 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