From f5ef0b01a8262243f433ec120da11e522b98d46e Mon Sep 17 00:00:00 2001 From: Greg Osuri Date: Tue, 15 Dec 2015 19:09:23 -0800 Subject: [PATCH] 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. --- Vagrantfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index a2759440c..de259a0dc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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