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:
1 parent
cce6175a5c
commit
9eeec2fa48
2 files changed
+10
No files matched your search
Vendored
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user