On Fri, Dec 03, 2010 at 03:50:33PM +0000, keithjamieson@hotmail.co.uk wrote:
The command
root@mws:~# host oldchris
does a hosts lookup, I assume in the local tables, and gets
oldchris.zbmc.eu has address 192.168.1.140
... and then does a DNS lookup and ....
Host oldchris.zbmc.eu not found: 3(NXDOMAIN)
... as is on my machine...
OK, but why does it try the second lookup? If I do other 'host' commands I don't get the same result:-
chris$ host chris.zbmc.eu chris.zbmc.eu has address 192.168.1.4 chris$ host dps.zbmc.eu dps.zbmc.eu has address 192.168.1.2 chris$ host oldchris.zbmc.eu oldchris.zbmc.eu has address 192.168.1.140 Host oldchris.zbmc.eu not found: 3(NXDOMAIN) chris$ host backup.zbmc.eu backup.zbmc.eu has address 192.168.1.88 chris$ host laptop.zbmc.eu laptop.zbmc.eu has address 192.168.1.84
Note that 192.168.1.4 and 192.168.1.2 are 'static' in that they're in the /etc/hosts file on the machine that is the DNS server, the others get their address using DHCP.
I'll ask on the dnsmasq list too, the DNS server uses dnsmasq.