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

Simon Kelley simon at thekelleys.org.uk
Thu Jun 18 10:32:03 BST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

As Albert says, the whole thing is explained by the printer getting an
IP address other than the one you configured for it. Looking in the
logs for what happened during that event is the key to this.

Cheers,

Simon.


On 18/06/15 08:08, Albert ARIBAUD wrote:
> 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,
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVgpATAAoJEBXN2mrhkTWieIYP/2goJLw/Ty3raYsci+aLSZ3G
hWR5RuxLneH7BgsBFKFcQ4i8dUcZs5jSSyeSz303gs93p/Llnv6CN2VjHaz84eRI
JC4tKFr+YGsf71WDOh6NGR4Ezp88S7z/yw17bquo6tyLIoNbZan/K6uei6VPNBl+
EXKymN0JcGLkpogbxO7FA1j/L23T2xecx57RbN+zyhHBXidFb4QJ6+2c3sFmYOfs
en6dkGFIJNF5X6Uziavk39x5koLUfAieuOq9bfT2TefP37vmdmCbe0n/PkfXTxIE
wg/DfCFFaHsijXauowm/VyP+baoWtb/4yyCQtAqIBsgngag7XUFDNaCy/HHeihhf
PbpJyNXVn9pYk/HZpLlgZiG4z+f4QjMqrwFp/4MY+9saRsDXVNgwjDNOpMIuFB68
0DEMH1w8lpAFy8Wtq4buUsYkVevkHuacVkzFS90+opZl1xwvKd9OverTUvAH8FX1
JQ2TBSjCgmnU1KgEhvzGG0T53b8+y7GCtRAf/1WNY1tNN7o9mdSXM5R+tB4dWcdE
JbQRSPLE2lk3yCudakuKZwJaPby4FE29OqUxolqT4YzAdMmhmBOFih8MGmKLXJ/t
hYUO5v5spD9pXtuxrgLjln/3N+PqDIOgzdhb/U2FPXckCE/wtGzcqLean2ZdoXXg
fnYB5A/Zyfbdhwe5gx15
=in43
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list