[Dnsmasq-discuss] Strange problem with expand_hosts and ipv6 only host entries

dnsmasq at phipps-hutton.freeserve.co.uk dnsmasq at phipps-hutton.freeserve.co.uk
Wed Aug 20 17:27:36 BST 2014


Hello,
I'm having problems getting dnsmasq to add the domain sufix to hosts  
in /etc/hosts that are ipv6 only. My conf has this:

local=/net.home/
expand-hosts
domain=net.home

My /etc/hosts has this:
# Hosts on the insecure wi-fi.
2001:8b0:1249:6349:76d4:35ff:fe8e:ac28 hal
192.168.1.254 skynet router 7public
192.168.1.4 hal firewall extranet
# Hosts on the secure LAN.
2001:8b0:1249::4 wopr failover http imap ldap mpd mysql nfs ntp proxy  
smtp syslog work wpad
2001:8b0:1249::5 tron printer scanner
2001:8b0:1249::7 k9 backup
2001:8b0:1249::8 ernie mythfrontend_1
2001:8b0:1249::9 orac
2001:8b0:1249::a smith mythfrontend_2
# The following lines are desirable for IPv6 capable hosts.
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# Legacy IPv4 adddresses.
127.0.0.1 localhost
192.168.0.3 kitt 7private
192.168.0.4 wopr dns home http
192.168.0.5 tron
192.168.0.7 k9 backup
192.168.0.8 ernie
192.168.0.9 orac
192.168.0.10 smith
192.168.0.11 matrix tv

As you can see I've got lots for aliases for wopr so I can (one-day)  
move servers around if I need to. DNS lookup for the aliases work OK  
but the ones with IPv6 only don't get the domain name added on:

OK: host smtp
smtp has IPv6 address 2001:8b0:1249::4

If I try with the domain added I get a complete failure:

OK: host smtp.net.home
Host smtp.net.home not found: 3(NXDOMAIN)

but strangely this works:

OK: host -t aaaa smtp.net.home
smtp.net.home has IPv6 address 2001:8b0:1249::4


Other aliases with both IPv6 and IPv4 work OK:

OK: host http
http.net.home has address 192.168.0.4
http.net.home has IPv6 address 2001:8b0:1249::4

OK: host http.net.home
http.net.home has address 192.168.0.4
http.net.home has IPv6 address 2001:8b0:1249::4


Is this a bug or am I doing something wrong?

Cheers,
Tim.






More information about the Dnsmasq-discuss mailing list