[Dnsmasq-discuss] Leases file is not updated and dhcp-script is not called if Requested-IP is in the pool.

Simon Kelley simon at thekelleys.org.uk
Fri Aug 27 18:31:26 UTC 2021



On 27/08/2021 15:45, Vallevand, Mark K wrote:
> I do clear the leases database as described.
> 
> I have tried a newer version of dnsmasq and experimented with
> script-on-renewal.  It really didn't seem to help with the problem.
> 
> Here is what I do and see (v 2.79)
> - stop dnsmasq
> - erase leases file
> - write config file
> - start dnsmasq
> - client request with preferred ip in configured pool
> - leases file *is not* updated
> - dhcp-script *is not* called
> - client request completes and begins to use the address
> - client request to renew lease
> - leases file *is* updated (yay)
> - dhcp-script *is* called with 'add' (yay)
> 
> Subsequent client lease renews do not see the dhcp-script called.  Expected.
> With a newer version, 2.86rc1, and script-on-renewal set, the subsequent
> client lease renews *do* see the dhcp-script called with 'old'.  Again, this
> is expected.  But, the behavior of dnsmasq does not otherwise change with
> the newer version.
> 
> So, why is the lease file not getting updated?
> 
> When the initial client request has a preferred ip outside the pool or is
> not included, it seems like things work as expected.
> 


Are you setting the dnsmasq option --dhcp-authoritative
Could you set the dnsmasq option --log-dhcp and post the resulting logs
when you go through the procedure above?

Cheers,

Simon.






More information about the Dnsmasq-discuss mailing list