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

2014-06-27 Thread Simon Kelley
On 27/06/14 21:43, Nehal J Wani wrote: > On Sat, Jun 28, 2014 at 12:58 AM, Simon Kelley > 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 leasef

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 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 leasefile-ro ha

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 _expir

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 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 RFC? Or > is a matter

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

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 --conf-file=/var/lib/libvirt/dnsmasq/de

[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 of