VirtualBox

Opened 10 years ago

Last modified 9 years ago

#12369 new defect

NAT Network - DHCP problem: no DNS

Reported by: petardo Owned by:
Component: network/NAT Version: VirtualBox 4.3.2
Keywords: DHCP Cc:
Guest type: Windows Host type: Windows

Description

Postby petardo » 17. Nov 2013, 03:20 I am using the "NAT NETWORK" Network Adapter. I have found a DHCP SERVER problem: IF

  • DHCP SERVER is enabled in the file / preferences / network / nat network section,
  • and NAT NETWORK is selected as natwork adapter for the guest

==> NO DNS values get forwarded to the guest

Attachments (2)

VBox.log (60.7 KB ) - added by petardo 10 years ago.
log file
file.pcap (5.3 KB ) - added by petardo 10 years ago.
pcap file

Download all attachments as: .zip

Change History (11)

comment:1 by vasily Levchenko, 10 years ago

Could you please attach the log file from your vm and pcap file?

in reply to:  1 comment:2 by petardo, 10 years ago

Replying to Hachiman:

Could you please attach the log file from your vm and pcap file?

Thanks Hachiman. I have uploaded the files requested.

Last edited 10 years ago by petardo (previous) (diff)

by petardo, 10 years ago

Attachment: VBox.log added

log file

by petardo, 10 years ago

Attachment: file.pcap added

pcap file

comment:3 by cmtsij, 10 years ago

I also get the same issue. My host is Linux Mint 13 with virtualbox 4.3.2. My guest is Windows XP with SP3.

The guest use NAT function, but alway got no DNS from DHCP. I try to use wireshark in my guest to filter bootp protocol. "DCHP Offer" always missing "Option: (6) Domain Name Server".

I checked my vbox setting:

<DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>

in reply to:  3 comment:4 by vasily Levchenko, 10 years ago

Replying to cmtsij:

I also get the same issue. My host is Linux Mint 13 with virtualbox 4.3.2. My guest is Windows XP with SP3.

The guest use NAT function, but alway got no DNS from DHCP. I try to use wireshark in my guest to filter bootp protocol. "DCHP Offer" always missing "Option: (6) Domain Name Server".

I checked my vbox setting:

<DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/>

This issue doesn't relate to "NAT networking", please create defect and attach there your VBox.log file and /etc/resolv.conf?

comment:5 by mdlavin, 10 years ago

I saw this same problem in the 4.2.20 builds. When I reverted back to 4.2.18 the problem went away.

comment:6 by mdlavin, 10 years ago

Also worth noting, I saw this with a Linux host and guest, not Windows.

comment:7 by Klaus Espenlaub, 10 years ago

4.2.20 has similar NAT improvements as 4.3, which should make sure that DNS changes are picked up in a timely manner by registering for DNS config change notifications. This was most tested on OSX host, where it definitely works, but maybe there is some problem on other platforms (notification too early or some such).

comment:8 by vasily Levchenko, 10 years ago

cmsij and mdlavin, please open defect against "NAT" not "NAT Network". "NAT Network" had appeared in 4.3.

comment:9 by dr_barnowl, 9 years ago

This is still a problem as of 4.3.18

Confirmed that you can ping external hosts - as long as you use their IP address.

I guess the workaround is to manually configure DNS servers (which won't allow you to resolve other guests on the NAT network, but you can put them in your host file.)

For my ubuntu server, this was useful Static DNS with DHCP

For Windows, you can meddle with the IPv4 settings of your virtual network adapter from the properties panel.

I just set both to Google's DNS ; I'll probably just turn off DHCP and give them static addresses too, so I can rely on them resolving each other via their hostnames put in hosts files.

I'm guessing that "NAT Network" either doesn't implement a DNS service or isn't sending it to the guests when they do a DHCP request ; it would be easier if this worked, of course.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use