Skip to content

Instantly share code, notes, and snippets.

@lanceon
Created November 16, 2018 14:59
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 lanceon/be31c4162c8cd36784f9dd81fa904b83 to your computer and use it in GitHub Desktop.
Save lanceon/be31c4162c8cd36784f9dd81fa904b83 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