Skip to content

Instantly share code, notes, and snippets.

@qsLI
Created August 3, 2021 02:38
Show Gist options
  • Save qsLI/370bcb532740e56e92996d51ef00d723 to your computer and use it in GitHub Desktop.
Save qsLI/370bcb532740e56e92996d51ef00d723 to your computer and use it in GitHub Desktop.

To achieve this you can setup DNS Proxy Mode using the host's resolver with the following command: VBoxManage modifyvm "VM name" --natdnshostresolver1 on

As the result, guest OS DNS requests will be intercepted and resolved using host DNS API, rather than having guest OS connect to external DNS servers as with --netdnsproxy1 on.

You can get the name of the VM by running VBoxManage list runningvms.

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