#5698 closed defect (fixed)
Host resolver proxy unable to resolve host or domain names containing a dash "-" => Fixed in SVN/3.1.2
Reported by: | ahaerpfer | Owned by: | |
---|---|---|---|
Component: | network/NAT | Version: | VirtualBox 3.1.0 |
Keywords: | NAT, UseHostResolver, DNS, proxy | Cc: | |
Guest type: | Linux | Host type: | Mac OS X |
Description
Description
When using the host resolver DNS proxy (UseHostResolver) from within a guest OS it is not possible to resolve host or domain names containing a dash ("-"). These both result in an NXDOMAIN return status for the DNS request instead.
This happens both for host names contained in the host system's /etc/hosts file as well as for hosts/domains that are passed on to the outside DNS.
Hosts and domains not containing a dash are being resolved OK both from /etc/hosts and outside DNS servers.
Demo case
/etc/hosts on host system:
192.168.200.11 skylight 192.168.200.21 s10-1
Guest configuration:
$ VBoxManage getextradata usrv01 enumerate [...] Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/UseHostResolver, Value: 1
Guest's /etc/resolv.conf:
nameserver 10.0.2.3
DNS lookups for systems in host's /etc/hosts file:
- No dash => OK
$ dig skylight ; <<>> DiG 9.5.0-P2 <<>> skylight ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8202 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;skylight. IN A ;; ANSWER SECTION: skylight. 3600 IN A 192.168.200.11 ;; Query time: 7 msec ;; SERVER: 10.0.2.3#53(10.0.2.3) ;; WHEN: Tue Dec 8 18:38:55 2009 ;; MSG SIZE rcvd: 42
- With dash => NOK
$ dig s10-1 ; <<>> DiG 9.5.0-P2 <<>> s10-1 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 47086 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;s10-1. IN A ;; Query time: 135 msec ;; SERVER: 10.0.2.3#53(10.0.2.3) ;; WHEN: Tue Dec 8 18:39:16 2009 ;; MSG SIZE rcvd: 23
"Outside" DNS lookups:
- No dash => OK
$ dig www.sun.com ; <<>> DiG 9.5.0-P2 <<>> www.sun.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19765 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;www.sun.com. IN A ;; ANSWER SECTION: www.sun.com. 3600 IN A 72.5.124.61 ;; Query time: 139 msec ;; SERVER: 10.0.2.3#53(10.0.2.3) ;; WHEN: Tue Dec 8 18:43:06 2009 ;; MSG SIZE rcvd: 45
- With dash => NOK; name actually should resolve and does so on the host system
$ dig www.lrz-muenchen.de ; <<>> DiG 9.5.0-P2 <<>> www.lrz-muenchen.de ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 56889 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;www.lrz-muenchen.de. IN A ;; Query time: 4 msec ;; SERVER: 10.0.2.3#53(10.0.2.3) ;; WHEN: Tue Dec 8 18:46:02 2009 ;; MSG SIZE rcvd: 37
Attachments (1)
Change History (8)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Sorry for not doing so in the first place; I've now uploaded the log for the VM in question.
follow-up: 5 comment:4 by , 15 years ago
Addendum: This seems to be independent on guest OS type (as I would have expected anyway). The same behaviour also shows in an OpenSolaris and a Solaris 10 guest system.
comment:5 by , 15 years ago
Replying to ahaerpfer:
Addendum: This seems to be independent on guest OS type (as I would have expected anyway). The same behaviour also shows in an OpenSolaris and a Solaris 10 guest system.
thanks for information.
comment:6 by , 15 years ago
Summary: | Host resolver proxy unable to resolve host or domain names containing a dash "-" → Host resolver proxy unable to resolve host or domain names containing a dash "-" => Fixed in SVN/3.1.2 |
---|
comment:7 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Could you please attach the log file?