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

Nehal J Wani nehaljw.kkd1 at gmail.com
Mon Dec 16 21:26:02 GMT 2013


Is the environment variable DNSMASQ_INTERFACE set when "del" action is
called? If not, why?

On 12/17/13, Simon Kelley <simon at thekelleys.org.uk> wrote:
> 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.
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>


-- 
Nehal J Wani



More information about the Dnsmasq-discuss mailing list