Re: [Dnsmasq-discuss] Not Resolving DHCP addresses
Dear DNSMASQ List: Now DHCP addresses are being resolved just fine, and everything is working 100% ok. Here's what I did: - went to lunch - did a little christmas shopping - then came back and everything was working fine Now I am curious why this problem occurred, and what happened to resolve the issue. Any ideas?? Thanks for DNSMASQ - it is really a great program. I've got a new DNSMASQ installation. - DHCP assigns addresses fine - DNS resolution for external and fixed addresses is fine - BUT - DNS resolution for DHCP addresses is not working Here's my dnsmasq.conf file... domain-needed domain=x expand-hosts resolv-file=/etc/resolv.conf.dnsmasq dhcp-range=192.168.4.100,192.168.4.200,24h local=/x/ log-queries no-negcache dhcp-authoritative when I do nslookup xxx (where xxx is the name of a dhcp machine) i get ** server can't find xxx.x: NXDOMAIN when i look at the dnsmasq log, and the dnsmasq.leases file, everything seems to be ok... Hmm - how can i get DNSMASQ to resolve my DHCP machines ?? -- a...@r210.com 650-823-0836
Re: [Dnsmasq-discuss] Not Resolving DHCP addresses
On Wed, Dec 23, 2009 at 04:01:19PM -0800, Andy Leak wrote: Now DHCP addresses are being resolved just fine, and everything is working 100% ok. Here's what I did: - went to lunch - did a little christmas shopping - then came back and everything was working fine Now I am curious why this problem occurred, and what happened to resolve the issue. Any ideas?? Very simple: dnsmasq(8) can only serve names that are in its lists, either hosts(5) or the leases file. If you start up a new dnsmasq on an existing network, it has no magical means of knowing what leases the previous DHCP daemon gave out. Over time, leases expired and your hosts came in to renew them. Your dnsmasq didn't know these were renewals. Thanks for DNSMASQ - it is really a great program. Your shopping should have included a goodie for Simon! ;) [the OP] I've got a new DNSMASQ installation. - DHCP assigns addresses fine - DNS resolution for external and fixed addresses is fine - BUT - DNS resolution for DHCP addresses is not working Here's my dnsmasq.conf file... domain-needed domain=x expand-hosts resolv-file=/etc/resolv.conf.dnsmasq dhcp-range=192.168.4.100,192.168.4.200,24h local=/x/ log-queries no-negcache dhcp-authoritative when I do nslookup xxx (where xxx is the name of a dhcp machine) i get nslookup(1) is buggy and not a good tool. I recommend that you become familiar with host(1) and dig(1). All three are provided by BIND. The ISC folks have threatened to drop nslookup. ** server can't find xxx.x: NXDOMAIN when i look at the dnsmasq log, and the dnsmasq.leases file, everything seems to be ok... You looked, and at the time, xxx was in the lease file? I bet it wasn't. -- Offlist mail to this address is discarded unless /dev/rob0 or not-spam is in Subject: header
Re: [Dnsmasq-discuss] Not Resolving DHCP addresses
Thx for your reply... nslookup(1) is buggy and not a good tool. I recommend that you become familiar with host(1) and dig(1). All three are provided by BIND. The ISC folks have threatened to drop nslookup. Thanks for that tip. I'll study host and dig... You looked, and at the time, xxx was in the lease file? I bet it wasn't. No - it was in the lease file - I'm sure of it. And I watched the dnsmasq log file as the addresses were handed out. And the addresses in the lease file matched the address I saw when running 'ifconfig' on the console. In the course of debugging, I re-assigned the DHCP address over and over. (by running 'sudo /etc/init.d/networking restart' on the ) Could frequent re-assignment have caused some sort of problem ??
[Dnsmasq-discuss] Not Resolving DHCP addresses
I've got a new DNSMASQ installation. - DHCP assigns addresses fine - DNS resolution for external and fixed addresses is fine - BUT - DNS resolution for DHCP addresses is not working Here's my dnsmasq.conf file... domain-needed domain=x expand-hosts resolv-file=/etc/resolv.conf.dnsmasq dhcp-range=192.168.4.100,192.168.4.200,24h local=/x/ log-queries no-negcache dhcp-authoritative when I do nslookup xxx (where xxx is the name of a dhcp machine) i get ** server can't find xxx.x: NXDOMAIN when i look at the dnsmasq log, and the dnsmasq.leases file, everything seems to be ok... Hmm - how can i get DNSMASQ to resolve my DHCP machines ??