-
-
Save hedgehog/1506046 to your computer and use it in GitHub Desktop.
Configure Vagrant VM to use Host DNS for VPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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