Internet doesn’t work with Virtual Box Windows because dns server isn’t found

virtualbox

If I use ip address to go to www.google.be for instance, it does work. How do I make the dns work in my Virtual Windows Xp machine?

Update:

Virtual Maching: ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : dell
Primary Dns Suffix  . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : telenet.be

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix  . : telenet.be
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-A0-BB-A1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.162
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 195.130.131.130
                                   192.168.0.1

Host: ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : TLV-EDU-LIC
Primary Dns Suffix  . . . . . . . : TELEVIC.com
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : TELEVIC.com
                                   telenet.be

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix  . : telenet.be
Description . . . . . . . . . . . : Intel(R) Wireless WiFi Link 4965AGN
Physical Address. . . . . . . . . : 00-1F-3B-98-94-51
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::adef:6e03:856c:eb9f%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.131(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DHCPv6 IAID . . . . . . . . . . . : 184557371
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-E7-EA-AE-00-21-70-84-0C-31
DNS Servers . . . . . . . . . . . : 195.130.131.130
                                   192.168.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Best Answer

You probably have the Network setting in Virtualbox set to NAT. If you set it to Bridged, then this virtual machine will do DHCP like any other machine on your network and should therefore get the proper DNS configuration. This might not work if you are on an office network where the DHCP service is tightly controlled and they don't accept unknown MAC addresses on the network.

Related Question