----------------------------------------
From: keithjamieson@hotmail.co.uk To: cl@isbd.net; main@lists.alug.org.u Subject: RE: [ALUG] What would cause this lack of decision about a host on the LAN? Date: Fri, 3 Dec 2010 15:10:21 +0000
Chris
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...
keith@laptop:~$ host oldchris.zbmc.eu Host oldchris.zbmc.eu not found: 3(NXDOMAIN) keith@laptop:~$ nslookup oldchris.zbmc.eu Server: 192.168.1.254 Address: 192.168.1.254#53
** server can't find oldchris.zbmc.eu: NXDOMAIN
keith@laptop:~$ dig oldchris.zbmc.eu
; <<>> DiG 9.7.1-P2 <<>> oldchris.zbmc.eu ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 42469 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION: ;oldchris.zbmc.eu. IN A
;; AUTHORITY SECTION: zbmc.eu. 10635 IN SOA a.dns.gandi.net. hostmaster.gandi.net. 1290680931 10800 3600 604800 10800
;; Query time: 21 msec ;; SERVER: 192.168.1.254#53(192.168.1.254) ;; WHEN: Fri Dec 3 15:08:37 2010 ;; MSG SIZE rcvd: 96
keith@laptop:~$
HTH Keith
Date: Tue, 23 Nov 2010 20:01:56 +0000 From: cl@isbd.net To: main@lists.alug.org.uk Subject: [ALUG] What would cause this lack of decision about a host on the LAN?
What might cause this somewhat confusing response to a 'host' command?
root@mws:~# host oldchris oldchris.zbmc.eu has address 192.168.1.140 Host oldchris.zbmc.eu not found: 3(NXDOMAIN)
-- 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!
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
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!