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

2013-12-16 Thread Nehal J Wani
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

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

2013-12-16 Thread Simon Kelley
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

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

2013-12-16 Thread Nehal J Wani
Is the environment variable DNSMASQ_INTERFACE set when del action is called? If not, why? On 12/17/13, Simon Kelley si...@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)

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

2013-12-16 Thread Simon Kelley
On 16/12/13 21:26, Nehal J Wani wrote: Is the environment variable DNSMASQ_INTERFACE set when del action is called? If not, why? It _may_ be, if the interface associated with the lease is known. That information is not stored in the lease file, so restarting dnsmasq will lose the knowledge

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

2013-12-16 Thread Nehal J Wani
On 12/17/13, Simon Kelley si...@thekelleys.org.uk wrote: On 16/12/13 21:26, Nehal J Wani wrote: Is the environment variable DNSMASQ_INTERFACE set when del action is called? If not, why? It _may_ be, if the interface associated with the lease is known. That information is not stored in the