[Dnsmasq-discuss] not giving name because the name exists..

Albert ARIBAUD albert.aribaud at free.fr
Thu Jun 18 08:08:28 BST 2015


Hi B. Cook,

Le Wed, 17 Jun 2015 15:21:59 -0400, "B. Cook"
<bcook at poughkeepsieschools.org> a écrit :

> 2.72 on CentOS 6.x latest..
> 
> not giving name hp6-216.phs.pcsd to the DHCP lease of 10.20.13.116 because
> the name exists in /etc/dnsmasq.d/hosts with address 10.20.15.234
> 
> This is the literal error..
> 
> I have printers in the 10.20.15/20 subnet for that building.. I have them
> listed in the hosts file (addn-hosts=/etc/dnsmasq.d/hosts) for NMS..
> 
> What makes that error appear and disappear?
> 
> Jun 15 21:59:10 dnsmasq-dhcp[1243]: DHCPACK(eth0) 10.20.15.234
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 15 23:49:24 dnsmasq-dhcp[1243]: DHCPACK(eth0) 10.20.15.234
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 16 01:37:56 dnsmasq-dhcp[1243]: DHCPACK(eth0) 10.20.15.234
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 16 03:24:07 dnsmasq-dhcp[1243]: DHCPACK(eth0) 10.20.15.234
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 16 05:09:47 dnsmasq-dhcp[1243]: DHCPACK(eth0) 10.20.15.234
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 16 06:56:17 dnsmasq-dhcp[1243]: DHCPACK(eth0) 10.20.15.234
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 16 08:41:43 dnsmasq-dhcp[1243]: DHCPACK(eth0) 10.20.15.234
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 16 12:40:56 dnsmasq-dhcp[3476]: DHCPACK(eth0) 10.20.13.116
> 00:01:e6:a7:f3:a1 hp6-216
> Jun 16 12:40:56 dnsmasq-dhcp[3476]: not giving name hp6-216.phs.pcsd
> to the DHCP lease of 10.20.13.116 because the name exists
> in /etc/dnsmasq.d/hosts with address 10.20.15.234
> Jun 16 12:41:01 dnsmasq-dhcp[3476]: not giving name hp6-216.phs.pcsd
> to the DHCP lease of 10.20.13.116 because the name exists
> in /etc/dnsmasq.d/hosts with address 10.20.15.234
> Jun 16 12:41:03 dnsmasq-dhcp[3476]: not giving name hp6-216.phs.pcsd
> to the DHCP lease of 10.20.13.116 because the name exists
> in /etc/dnsmasq.d/hosts with address 10.20.15.234
> 
> 
> I'm also not sure why it thinks its IP should have changed..
> 
>  grep hp6-216 /var/lib/misc/dnsmasq.leases
> 1434579174 00:01:e6:a7:f3:a1 10.20.13.116 hp6-216 *
> 
> And this is its dnsmasq entry:
> 
> dhcp-host=00:01:e6:a7:f3:a1,10.20.15.234,hp6-216 #net:phs #
> phs216_hp6mp
> 
> I would greatly appreciate any insight..

Does your config have a permanent lease set up for host
00:01:e6:a7:f3:a1? If not, then the host is not guaranteed to
always receive the same IP through DHCP.

Did you check if any other host received the "old" IP?

Also, in yor log I see DHCP ACK messages, but no oher DHCP messages
(DISCOVER, OFFER, REQUEST...) especially non /from/ the printer. Aren't
there any?

Also, you might want to run wireshark/tcpdump, filtering on DHCP
messages (not only to/from this host, but to/from any host), until you
catch a new IP change on this host.

Amicalement,
-- 
Albert.



More information about the Dnsmasq-discuss mailing list