<p>You can work around this issue in one of two ways, both of which are <a href="http://www.virtualbox.org/manual/ch09.html#nat-adv-dns">in the VirtualBox manual</a>:</p>
<blockquote></blockquote>
<h2><a name="p-19574-enabling-dns-proxy-in-nat-mode-1" class="anchor" href="#p-19574-enabling-dns-proxy-in-nat-mode-1" aria-label="Heading link"></a>Enabling DNS proxy in NAT mode</h2>
<p>The NAT engine by default offers the same DNS servers to the guest<br>
that are configured on the host. In some scenarios, it can be<br>
desirable to hide the DNS server IPs from the guest, for example when<br>
this information can change on the host due to expiring DHCP leases.<br>
In this case, you can tell the NAT engine to act as DNS proxy using<br>
the following command:</p>
<pre><code class="lang-auto">VBoxManage modifyvm "VM name" --natdnsproxy1 on
</code></pre>
<h2><a name="p-19574-using-the-hosts-resolver-as-a-dns-proxy-in-nat-mode-2" class="anchor" href="#p-19574-using-the-hosts-resolver-as-a-dns-proxy-in-nat-mode-2" aria-label="Heading link"></a>Using the host’s resolver as a DNS proxy in NAT mode</h2>
<p>For resolving network names, the DHCP server of the NAT engine offers<br>
a list of registered DNS servers of the host. If for some reason you<br>
need to hide this DNS server list and use the host’s resolver<br>
settings, thereby forcing the VirtualBox NAT engine to intercept DNS<br>
requests and forward them to host’s resolver, use the following<br>
command:</p>
<pre><code class="lang-auto">VBoxManage modifyvm "VM name" --natdnshostresolver1 on
</code></pre>
<p>Note that this setting is similar to the DNS proxy mode, however<br>
whereas the proxy mode just forwards DNS requests to the appropriate<br>
servers, the resolver mode will interpret the DNS requests and use the<br>
host’s DNS API to query the information and return it to the guest.</p>