VirtualBox

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#13918 closed defect (fixed)

NAT DNS proxy not working after upgrade to 4.3.24

Reported by: mbalmer Owned by:
Component: network/NAT Version: VirtualBox 4.3.24
Keywords: DNS, NAT proxy Cc:
Guest type: all Host type: Mac OS X

Description

NAT DNS proxy does not work anymore after upgrading to 4.3.24 from the previous version.

The setup is a NatNetwork without DHCP, 192.168.17.0/24 plus a host only network 192.168.16.0/24.

The guest has 192.168.17.2 (in the nat network) and 192.168.16.2 (in the host only network).

The guest can ping the NAT gateway at 192.168.17.1 and also reach outside hosts by specifying an IP. DNS resolver on the guest is set to 192.168.17.1, i.e. to use the DNS proxy on the NAT gateway. But that does not work anymore after the upgrade.

Attachments (2)

demo_vbox.log (96.6 KB ) - added by mbalmer 9 years ago.
VBox.Log of a virtual machine that shows the issue
dhcp.cap (1.9 KB ) - added by Glob3r 8 years ago.
tcpdump capture from the VM poing of view when running dhclient

Download all attachments as: .zip

Change History (16)

by mbalmer, 9 years ago

Attachment: demo_vbox.log added

VBox.Log of a virtual machine that shows the issue

comment:1 by mbalmer, 9 years ago

I verified the issue with the following guest OSes:

  • Ubuntu Linux 14.04 LTS (i386, 32bit)
  • NetBSD 6.1.5 (amd64, 64bit)

Symptoms are:

  • When logging into to the guest using ssh, there is a significant delay, because the guest tries to reverse lookup my IP address (which eventually fails)
  • nslookup fails after a timout:

# nslookup www.virtualbox.org

;; connection timed out; no servers could be reached

output of # cat /etc/resolf.conf:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

nameserver 192.168.17.1

comment:2 by mbalmer, 9 years ago

FWIW, here is a similar issue on Windows, see ticket #13915.

comment:3 by Frank Mehnert, 9 years ago

Please could you verify if the OSX build from our test builds page solves the problem? Thank you!

comment:4 by Mapache, 9 years ago

Had to install the new 4.3.25 Vbox Additions. (Mac OSX host, Windows 7 Guest) "NAT Network" works fine. Still no DNS in "NAT" mode.

comment:5 by Valery Ushakov, 9 years ago

Please, can you provide VM log file for the failed run with "NAT"?

comment:6 by Mapache, 9 years ago

Sorry - don't have much time.

DHCP offers an IP but Windows reports an IP address conflict. (although it's definitely not - other machines run with different IP addresses)

in reply to:  3 comment:7 by mbalmer, 9 years ago

Replying to frank:

Please could you verify if the OSX build from our test builds page solves the problem? Thank you!

Sorry for the delay, I am somewhat in holiday ;) Will test now and report back.

comment:8 by mbalmer, 9 years ago

Good news: With the test build as of today, the DNS proxy works again (with my original configuration of a Linux guest with eth0 in a NatNetwork and eth1 in a host only network).

Thanks! Will now run 3.2.25r98882 until the next release.

comment:9 by Frank Mehnert, 9 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 4.3.26.

comment:10 by da4an1qu1, 9 years ago

Resolution: fixed
Status: closedreopened

At risk of drawing ire, I feel compelled to reopen this. I was experiencing the original issue. And VBox 4.3.26 resolved that issue, but only partially. I run two VMs simultaneously. Whilst the first running VM receives updated DNS settings via DHCP when moving from network to network, the second is stuck with the same symptom as first reported in this issue. That is, the DNS is not being updated. Please note, the second VMs NAT is set to 10.0.3.0/24, whilst the firsts is 10.0.2.0/24. The second VM also has a Host-only network adapter configured.

in reply to:  10 comment:11 by Valery Ushakov, 9 years ago

Replying to da4an1qu1:

the second is stuck with the same symptom as first reported in this issue. That is, the DNS is not being updated.

The "symptom first reported in this issue" was for DNS proxy in NAT Network. You are apparently talking about NAT. Do you use NAT's DNS proxy? What is your host system?

comment:12 by da4an1qu1, 9 years ago

OK. Maybe I've misunderstood the synopsis. The problem I had in 4.3.24 was like this example:

Host obtains an DHCP address on 192.168.1.0/24, and DNS is set as 192.168.1.1 by DNS (home router). Guest 1's NAT adapter obtains IP address 10.0.2.15 and DNS is set as 192.168.1.1, which is reachable due to NAT. Guest 2's NAT adapter obtains IP address 10.0.3.15 and DNS is set as 192.168.1.1 again.

move host to new network, 192.168.0.0/24, and DNS 192.168.0.254 say. Now, Guest 1's NAT adapter is disconnect/reconnected and all details stay same regardless, including now no longer valid DNS 192.168.1.1. Same Guest 2. Both guests difficult to use.

Now the situation is that after moving Guest 2 stays stuck on invalid DNS 192.168.1.1.

The situation is fixed for Guest 1 though, it now gets correct DNS as 192.168.0.254 on the reconnection.

If this is not appropriate for the ticket, I apologise. I can raise a separate ticket if necessary.

comment:13 by Valery Ushakov, 9 years ago

Resolution: fixed
Status: reopenedclosed

Yes this is not the right ticket. There are several related problems 4.3.{22,24,26} in DNS related code. In 4.3.24 all DNS updates were lost. It was fixed in 4.3.26 but re-introduced #13839 - NAT link flaps on host DHCP renewal (which is exacerbated on networks with very short DHCP lease times).

by Glob3r, 8 years ago

Attachment: dhcp.cap added

tcpdump capture from the VM poing of view when running dhclient

comment:14 by Valery Ushakov, 8 years ago

What is that capture supposed to demonstrate?

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use