Enable DNS proxy (in NAT mode) by default

This commit is contained in:
Seth Chisamore 2012-03-23 09:37:04 -04:00
parent a1b16fd96d
commit c137dec14f
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ module Vagrant
]
env[:vm].driver.execute_command(command)
# Enable the DNS proxy while in NAT mode. This shields the guest
# VM from external DNS changs on the host machine.
command = [
"modifyvm", env[:vm].uuid,
"--natdnsproxy1", "on"
]
env[:vm].driver.execute_command(command)
@app.call(env)
end
end