Skip to content

Instantly share code, notes, and snippets.

@arenadoon
Forked from turadg/resolv.conf
Created June 25, 2024 17:04
Show Gist options
  • Save arenadoon/b61b64ca2538d764002b1df9e0c16def to your computer and use it in GitHub Desktop.
Save arenadoon/b61b64ca2538d764002b1df9e0c16def 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