Chris
With the name being "oldchris" it might not register its name with the DNS server, once it gets it IP via DHCP. And so the server does the nslookup ?
Just a thought.
Keith
----------------------------------------
Date: Fri, 3 Dec 2010 17:32:19 +0000 From: cl@isbd.net To: main@lists.alug.org.uk Subject: Re: [ALUG] FW: What would cause this lack of decision about a host on the LAN?
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.
-- Chris Green
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!