[Dnsmasq-discuss] DNSmasq returns duplicate A records for some entries.
John Hanks
john.hanks at colorado.edu
Sun May 15 22:47:44 BST 2011
I have a set of hosts, named node0001, node0002, ... and the entries
in dnsmasq config are all similar, for example the dhcphosts entries
fo rtwo of these (note tha tall dhcphosts are in per-rack files in a
dhcphosts/ directory and all hosts are in files in a /hosts directory,
these directories are set in the dnsmasq.conf):
[root at mbombo dhcphosts]# grep node0101 *
VLAN_0001_JANUS_RACK01.dhcp:00:a0:d1:ee:9a:18,172.29.1.1,node0101,infinite
VLAN_2049_JANUS_RACK01.dhcp:00:a0:d1:ee:9a:18,10.134.1.1,node0101,infinite
[root at mbombo dhcphosts]# grep node0001 *
VLAN_0001_JANUS_RACK00.dhcp:00:a0:d1:ee:b6:8c,172.29.0.73,node0001,infinite
VLAN_2049_JANUS_RACK00.dhcp:00:a0:d1:ee:b6:8c,10.134.0.73,node0001,infinite
and hosts:
[root at mbombo hosts]# grep node0001 * | grep -v vmnode
janus.hosts:172.28.0.73 node0001ib
janus.hosts:172.29.0.73 node0001mgt
janus.hosts:172.29.100.73 node0001ipmi
research-computing.hosts:172.29.0.73 node0001
research-computing.hosts:10.134.0.73 node0001
[root at mbombo hosts]# grep node0101 * | grep -v vmnode
janus.hosts:172.29.1.1 node0101mgt
janus.hosts:172.29.101.1 node0101ipmi
janus.hosts:172.28.1.1 node0101ib
research-computing.hosts:172.29.1.1 node0101
research-computing.hosts:10.134.1.1 node0101
However, when I query DNSmasq, for some of these hosts it returns
duplicate A records:
[root at login04 ~]# host node0001
node0001.rc.colorado.edu has address 10.134.0.73
node0001.rc.colorado.edu has address 10.134.0.73
[root at login04 ~]# host node0101
node0101.rc.colorado.edu has address 10.134.1.1
[root at login04 ~]# host node1223
node1223.rc.colorado.edu has address 10.134.12.23
[root at login04 ~]# host node0003
node0003.rc.colorado.edu has address 10.134.0.75
node0003.rc.colorado.edu has address 10.134.0.75
Anyone see what I'm doing wrong to trigger this? I don't know when it
started as I've never noticed it before today but I just had an
application start refusing to work with the hosts which get duplicate
responses. I have matching dhcp-host and hosts file entries for each
because I need name resolution to always work even when the host is
down or has never been up to get a dhcp lease. Also am using
localise-queries, if that matters. This is with 2.57.
Thanks,
jbh
More information about the Dnsmasq-discuss
mailing list