[Dnsmasq-discuss] Am I missing something?

Simon Kelley simon at thekelleys.org.uk
Thu Jan 3 17:03:19 GMT 2008


B. Cook wrote:
> Hello all,
> 
> I have dnsmasq setup with internal dhcp I have powerdns-recursor
> listening on 127.0.0.1 and tinydns is running on 127.53.0.1.
> 
> Hosts register in dnsmasq dhcpd without a problem, but they don't
> populate their PTR.. so that comes from tinydns instead of dnsmasq.. 
> how can I fix that or change it so that hosts in dhcpd appear before
> going to tinydns?
> 
> 
> below is my config:
> 
> bind-interfaces
> domain-needed
> expand-hosts
> filterwin2k
> resolv-file=/usr/local/etc/resolv.conf
> listen-address=172.16.32.128
> cache-size=4096
> log-queries
> log-facility=LOCAL7
> server=/32.16.172.in-addr.arpa/127.53.0.1
> server=/hvs.local/127.53.0.1
> 
> #server=/32.16.172.in-addr.arpa/172.16.32.8
> #server=/hvs.local/172.16.32.8
> 
> dhcp-authoritative
> #dhcp-host=00:13:72:e8:2f:9f,172.16.32.128
> #dhcp-host=00:11:22:33:44:55,1.2.3.4,imac
> #dhcp-host=00:11:22:33:44:55,,macbookpro
> 
> dhcp-leasefile=/var/db/dnsmasq.leases
> dhcp-option=3,172.16.32.8    # Router
> dhcp-option=42,172.16.32.128# NTP
> dhcp-option=44,172.16.32.128# WINS
> dhcp-option=46,2                   # Netbios Node Type
> dhcp-option=6,172.16.32.128    # DNS
> dhcp-option=vendor:MSFT,2,1i
> dhcp-range=172.16.32.16,172.16.32.127,255.255.255.0,1h
> 
> domain=hvs.local
> except-interface=lo0
> interface=fxp0
> group=nobody
> no-negcache
> user=nobody
> 
> 
> Here is some dnsmasq log info:
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: compile time options: no-IPv6
> GNU-getopt ISC-leasefile no-DBus no-I18N TFTP
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: DHCP, IP range 172.16.32.16 --
> 172.16.32.127, lease time 1h
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: using nameserver 127.53.0.1#53
> for domain hvs.local
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: using nameserver 127.53.0.1#53
> for domain 32.16.172.in-addr.arpa
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: reading /usr/local/etc/resolv.conf
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: using nameserver 127.0.0.1#53
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: using nameserver 127.53.0.1#53
> for domain hvs.local
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: using nameserver 127.53.0.1#53
> for domain 32.16.172.in-addr.arpa
> Jan  1 16:54:00 isaiasm dnsmasq[18550]: read /etc/hosts - 1 addresses
> ..
> 8< snip
> recursive dns queries
> ..
> Jan  1 16:50:09 isaiasm dnsmasq[47183]: DHCPREQUEST(fxp0) 172.16.32.78
> 00:40:f4:57:f2:f8
> Jan  1 16:50:09 isaiasm dnsmasq[47183]: DHCPACK(fxp0) 172.16.32.78
> 00:40:f4:57:f2:f8 hvs
> 
> root at isaiasm [/var/db]# 23 > arp -a
> pfsense.hvs.local (172.16.32.8) at 00:18:4d:72:03:67 on fxp0 [ethernet]
> node-54.hvs.local (172.16.32.54) at 00:16:b6:93:f6:67 on fxp0 [ethernet]
> node-78.hvs.local (172.16.32.78) at 00:16:b6:93:f6:67 on fxp0 [ethernet]
> hvsdevelopment.hvs.local (172.16.32.79) at 00:16:b6:93:f6:67 on fxp0
> [ethernet]
> Helen.hvs.local (172.16.32.116) at 00:13:20:73:06:4d on fxp0 [ethernet]
> Acidophilus.hvs.local (172.16.32.117) at 00:13:20:6b:02:5d on fxp0
> [ethernet]
> node-126.hvs.local (172.16.32.126) at 00:0c:f1:94:19:e9 on fxp0 [ethernet]
> nameserver.hvs.local (172.16.32.128) at 00:13:72:e8:2f:9f on fxp0
> permanent [ethernet]
> broadcat.hvs.local (172.16.32.255) at ff:ff:ff:ff:ff:ff on fxp0
> permanent [ethernet]
> 
> the node-$number entries come from tinydns.
> 
> any clue would be appreciated, thanks in advance

You've got log-queries set, so if the reverse resolutions from arp -a
were getting to dnsmasq, you would see them in the log irrespective
where they get answered. If you don't. then you have a DNS-plumbing
problem and libc is sending the queries to tinydns. Beware of your
127.53.0.1 trick, those addresses don't always behave in straightforward
ways, in my experience.


Cheers,

Simon.

> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list