Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohit-rocks/bed1fc9f2d2c6213cebd7c9a0b18ef9c to your computer and use it in GitHub Desktop.
Save mohit-rocks/bed1fc9f2d2c6213cebd7c9a0b18ef9c to your computer and use it in GitHub Desktop.
Configure Vagrant VM to use Host DNS for VPN
Vagrant::Config.run do |config|
# ...
config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
@mohit-rocks
Copy link
Author

Below code worked for me.

config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment