Merge pull request #834 from schisamo/sane-defaults

Enable DNS proxy (in NAT mode) by default
This commit is contained in:
Mitchell Hashimoto 2012-03-23 06:49:02 -07:00
commit ef72d87cd7
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