Skip to content

Instantly share code, notes, and snippets.

@rlyon
Last active August 29, 2015 13:57
Show Gist options
  • Save rlyon/9701106 to your computer and use it in GitHub Desktop.
Save rlyon/9701106 to your computer and use it in GitHub Desktop.
Fix vagrant hang due to DNS resolver issue
#
# ... 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