Last active
August 29, 2015 13:57
-
-
Save rlyon/9701106 to your computer and use it in GitHub Desktop.
Fix vagrant hang due to DNS resolver issue
This file contains hidden or 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
# | |
# ... Other configs | |
# | |
config.vm.network :private_network, ip: "33.33.33.10" | |
# In certain cases, vagrant will hang for a long time and then | |
# error out. For some reason that I haven't bothered looking in | |
# to, I have to explicitly turn on the the vbox dns resolver. | |
# | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
end | |
# | |
# ... Other configs | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment