Vagrantfile: enable NAT engine to use host's resolver

VirualBox fails to resolve external hosts on some machines. Handle cases
when the host is behind a private network by making the NAT engine use the
host's resolver mechanisms to handle DNS requests.
This commit is contained in:
Greg Osuri
2015-12-16 19:29:08 -08:00
parent c806b21e77
commit f5ef0b01a8
Vendored
+4
View File
@@ -21,6 +21,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Cannot allocate memory" when running
# letsencrypt.client.tests.display.util_test.NcursesDisplayTest
v.memory = 1024
# Handle cases when the host is behind a private network by making the
# NAT engine use the host's resolver mechanisms to handle DNS requests.
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end