Instantly share code, notes, and snippets.

Embed
What would you like to do?
Configure Vagrant VM to use Host DNS for VPN
Vagrant::Config.run do |config|
# ...
config.vm.customize do |vm|
# Use the host resolver for DNS so that VPN continues
# to work within the VM
vm.network_adapters.each do |na|
if na.enabled? && na.nat_driver
na.nat_driver.dns_use_host_resolver = true
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment