Restore use of DNS from Vagrant VMs

These incantations are said to fix DNS on Vagrant VMs running with a
private network.
This commit is contained in:
Michael Bridgen committed 2015-03-12 14:39:25 +00:00
1 parent cce6175a5c
commit 9eeec2fa48
2 files changed
+10

No files matched your search

+5
View File
@@ -33,6 +33,11 @@ end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
(1..n_machines).each do |i|
config.vm.define "host#{i}" do |host|
ip_suffix = ip_suffix_base + i