[Dnsmasq-discuss] Notification when a system gets a lease
simon at thekelleys.org.uk
Tue Dec 7 21:51:57 GMT 2010
richardvoigt at gmail.com wrote:
> You should get a "renew" notification to the script whenever a client
> boots (assuming that the client is configured to renew a lease at
> boot, most are but it isn't strictly necessary if there's still time
> left on the last lease).
Actually, that's not always true. What you get is an "old" event when
the lease database changes. Normally, the client renewing the lease
changes the expiry time and therefore triggers this, but an infinite
lease renewed is still an infinite lease, so no joy.
You could just make the default lease time very long, so that it's
infinite for practical purposes, but the expiry time still changes when
the client reboots.
More information about the Dnsmasq-discuss