Opened 12 years ago
Closed 10 years ago
#11540 closed defect (duplicate)
DNS in NAT incorrectly handles resolution if host is setup with ipv4 ipv6 dual stack
Reported by: | rj45 | Owned by: | |
---|---|---|---|
Component: | network/NAT | Version: | VirtualBox 4.2.8 |
Keywords: | Cc: | ||
Guest type: | BSD | Host type: | Linux |
Description
When I use the default configuration for NAT, something is not resolving correctly if my host system is setup to use ipv4/ipv6 dual stack.
I am using Ubuntu 12.10 as the host system. The resolv.conf from the host is:
# 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 127.0.1.1
The router for my LAN's DNS is on 192.168.1.1. If I set the guest OS to use DHCP in NAT, the resolution is broken for some records. I get the following error:
Mar 2 22:24:07 test sm-mta[689]: gethostby*.gethostanswer: asked for "test IN AAAA", got type "A"
Some things resolve correctly, and others have the problem above.
If I set the guest's resolv.conf to point to the LAN's DNS at 192.168.1.1 the problems are gone.
Change History (3)
comment:1 by , 12 years ago
comment:3 by , 10 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
NAT falls back into host-resolver mode since it cannot map 127.0.1.1
(like it does for 127.0.0.1
).
I'm seeing something similar with VirtualBox 4.2.12 on Ubuntu 12.10 with Ubuntu 12.04 guest. It seems that no matter what DNS request the guest makes, VirtualBox responds with an "A" record. This can be demonstrated using the "host" command on the guest:
It's receiving 6 "A" responses, whereas on the host system:
it receives AAAA and MX records as well. Running dig also shows that the response on the guest system is always an "A" record:
[posted this using a public account since signing up for Oracle account requires all sorts of personal information]