[Dnsmasq-discuss] Reg: --dhcp-script option

Simon Kelley simon at thekelleys.org.uk
Mon Dec 16 19:20:21 GMT 2013


On 16/12/13 19:06, Nehal J Wani wrote:
> Suppose I am using the script for dnsmasq lease-change hook
> ([dnsmasq.git] / contrib / mactable / macscript) and 3 leases have
> been handed out for a particular network. Now, if I shutdown the
> network and start dnsmasq again after these 3 leases have expired, the
> leases file has zero entries, but the "/tmp/dnsmasq-ip-mac.status"
> file will have those old entries. How will I clean them up? Will I
> have to manually check the timestamps and remove those entries or
> dnsmasq provides something that I am missing?
>

You'll see "del" events for the leases, either when they actually 
expire, or (if dnsmasq isn't running then) when dnsmasq is started again.


Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list