[Dnsmasq-discuss] what do the contents of /var/lib/misc/dnsmasq.leases mean?

Simon Kelley simon at thekelleys.org.uk
Thu Jan 3 20:06:16 GMT 2019


The leftmost 0 means that the leases are infinite, they never expire,
which might explain why you're running out of leases.

There can be duplicate leases per MAC address, but there should never be
duplicate leases for an IP address. So I'm interested in finding out how
you've contrived this situation. Please could you share as much
information as possible about network and dnsmasq configuration?


Cheers,

Simon.


On 02/01/2019 04:01, Sean Kelly wrote:
> when I cat the file I see mutiple entries for the same MAC address, what
> does this mean?
> 
> 0 98:de:d0:bb:11:0c 192.168.0.10 * 01:98:de:d0:bb:11:0c
> 0 98:de:d0:bb:11:0c 192.168.0.10 * 01:98:de:d0:bb:11:0c
> 0 98:de:d0:2c:0e:4c 192.168.0.20 * 01:98:de:d0:2c:0e:4c
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 44:80:eb:95:2a:b4 192.168.0.66 * 01:44:80:eb:95:2a:b4
> 0 44:80:eb:95:2a:b4 192.168.0.66 miri-phone 01:44:80:eb:95:2a:b4
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:90:a9:6a:0b:92 192.168.0.40 * 01:00:90:a9:6a:0b:92
> 0 00:1a:62:01:17:cf 192.168.0.252 * 01:00:1a:62:01:17:cf
>  Can I trim multiple entriesor is it safe to ignore them? I just
> recently got the dnsmasq NO LEASES LEFT error and was concerned that
> these duplicate entries contributed to the dhcp-max-leases count. Can I
> delete them safely?
> 
> Go Carefully,
> 
> SeanK
> 
> _______________________________________________
> 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