This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
Add the --virtualbox-host-dns-resolver flag #2448
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new flag,
--virtualbox-host-dns-resolver
, that tells VirtualBox to start the VM with--natdnshostresolver1 on
instead ofoff
.A common problem I've run into is getting DNS to work correctly in VirtualBox VMs when I'm connected to a VPN that does special magic to the host's DNS resolver. This makes it easier to set up a Docker host with working DNS without having to shut it down and run the
VBoxManage
command manually.The integration test for this isn't great, because I couldn't find a way to inspect the
natdnshostresolverX
property. I'd love to hear any suggestions for how to properly test this! 馃寛Signed-off-by: Joe Friedl joe@joefriedl.net