[Dnsmasq-discuss] old event to dhcp-script on lease expiry

2014-06-27 Thread Nehal J Wani
Hi! I am trying to understand whether an 'old' event is generated or not when a lease expires. To experiment this, I used Dnsmasq version 2.72test3-5-gcdb755c I launch dnsmasq like this: sudo /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default6.conf --dhcp-script=/tmp/script.sh Contents

Re: [Dnsmasq-discuss] old event to dhcp-script on lease expiry

2014-06-27 Thread Simon Kelley
On 27/06/14 08:27, Nehal J Wani wrote: Hi! I am trying to understand whether an 'old' event is generated or not when a lease expires. To experiment this, I used Dnsmasq version 2.72test3-5-gcdb755c I launch dnsmasq like this: sudo /sbin/dnsmasq

Re: [Dnsmasq-discuss] old event to dhcp-script on lease expiry

2014-06-27 Thread Nehal J Wani
An old event is not generated when a lease is _renewed_ (ie when the only thing that changes is the expiration time) unless the option leasefile-ro is set. Note that setting leasefile-ro has a bunch of other effects too. When a lease _expires_ (ie the end time of the lease is reached without

Re: [Dnsmasq-discuss] old event to dhcp-script on lease expiry

2014-06-27 Thread Albert ARIBAUD
Hi Nehal, Le Sat, 28 Jun 2014 00:10:32 +0530, Nehal J Wani nehaljw.k...@gmail.com a écrit : Another question, not very much related to dnsmasq, is that when a machine receives a lease for a particular period, when should it query the DHCP again for a new lease? Is it bound to do so, by some

Re: [Dnsmasq-discuss] old event to dhcp-script on lease expiry

2014-06-27 Thread Simon Kelley
On 27/06/14 19:40, Nehal J Wani wrote: An old event is not generated when a lease is _renewed_ (ie when the only thing that changes is the expiration time) unless the option leasefile-ro is set. Note that setting leasefile-ro has a bunch of other effects too. When a lease _expires_ (ie the

Re: [Dnsmasq-discuss] old event to dhcp-script on lease expiry

2014-06-27 Thread Nehal J Wani
On Sat, Jun 28, 2014 at 12:58 AM, Simon Kelley si...@thekelleys.org.uk wrote: On 27/06/14 19:40, Nehal J Wani wrote: An old event is not generated when a lease is _renewed_ (ie when the only thing that changes is the expiration time) unless the option leasefile-ro is set. Note that setting