Opened 17 years ago

Closed 16 years ago

#421 closed defect (duplicate)

DNS not working

Reported by: rozelak Owned by:
Component: network Version: VirtualBox 1.4.0
Keywords: Cc:
Guest type: other Host type: other



I just wanted to try VirtualBox, but I realized that dns is probably broken in 1.4.0 binary version (installed through gentoo portage), with default NAT network setting.

When I try to connect e.g. to '' in internet explorer (WindowsXP proffesional), it fails everytime. However, setting address '' to IE works perfectly! The same situation repeats for any internet page. I have also tried to ping the gate for virtualized Windows (ping, everthing works erfectly, but the ping of dns server (ping ends with 'Request timed out' message.

Due to the fact that net is available through addresses, I gues that the problem is in inbuild DNS. Naturally, net works perfectly from native linux.

Regards, Roz.

Change History (7)

comment:1 by Klaus Espenlaub, 17 years ago

Can you please attach a log file for a VM where DNS doesn't work? The log file shows what DNS server our built-in DNS forwarder uses. It's most likely that it uses the wrong one. VirtualBox gets the host's DNS configuration from /etc/resolv.conf.

And the issue with pinging the built-in DNS "server" is normal. See the manual about pinging in NAT network configuration.

comment:2 by Sander van Leeuwen, 17 years ago

Resolution: fixed
Status: newclosed

No reply for 5 months. Closing.

comment:3 by David Phillips, 16 years ago

Resolution: fixed
Status: closedreopened

The host is Linux and uses dnsmasq for DNS caching. This could be fixed by proxying DNS or allowing DNS configuration. Note that this setup works with QEMU's NAT, so QEMU must handle it differently.

host$ cat /etc/resolv.conf 
search internal


00:11:45.951 NAT: passing domain name internal
00:11:45.951 NAT: DNS address:
00:12:10.224 NAT: DNS address:

comment:4 by Frank Mehnert, 16 years ago

Component: othernetwork

comment:5 by David Phillips, 16 years ago

A quick summary: The host OS has set for the DNS server in /etc/resolv.conf. VirtualBox passes as the DNS server to the guest OS. This obviously incorrect as is the loopback address.

comment:6 by Cristi Magherusan, 16 years ago


Try to edit /etc/dhcp/dhclient.conf and remove this line: prepend domain-name-servers;


comment:7 by Frank Mehnert, 16 years ago

Resolution: duplicate
Status: reopenedclosed

Duplicate of #1470.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use