Re: [Dnsmasq-discuss] Query: DNSMASQ_LEASE_EXPIRES

2016-12-21 Thread Nehal J Wani
On Thu, Sep 22, 2016 at 3:21 PM, Nehal J Wani <nehaljw.k...@gmail.com> wrote: > Hi! > > According to the man page of dnsmasq, DNSMASQ_LEASE_EXPIRES stores the > time of lease expiry and DNSMASQ_TIME_REMAINING stores the number of > seconds until expiry and these are passed to

[Dnsmasq-discuss] Query: DNSMASQ_LEASE_EXPIRES

2016-09-22 Thread Nehal J Wani
and it is different in struct script_data. Is there a specific reason behind choosing different datatypes? Cheers! Nehal J Wani ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq

Re: [Dnsmasq-discuss] Query regarding --leasefile-ro

2014-07-01 Thread Nehal J Wani
for all dnsmasq instances, how will the leases helper program distinguish between different interfaces (that is, for which interface should I print info, if I get 'init' as argument)? How does it happen by default, when none of --dhcp-script and --leasefile-ro are provided? Thanking You, Nehal J Wani

[Dnsmasq-discuss] Query regarding --leasefile-ro

2014-06-30 Thread Nehal J Wani
information like duid 00:01:00:01:1b:40:8d:94:00:25:64:8b:e4:2c in the lease file. Is this also mandatory to print to stdout in case I use leasefile-ro ? Thanking You, Nehal J Wani ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http

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

2014-06-27 Thread Nehal J Wani
renewed. Is this expected? I don't see any 'old' event for the renewed lease. Regards, Nehal J Wani ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

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

2014-06-27 Thread Nehal J Wani
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 of choice by the developer? -- Nehal J Wani ___ Dnsmasq-discuss

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

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

2013-12-16 Thread Nehal J Wani
, 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? -- Nehal J Wani ___ Dnsmasq-discuss mailing

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

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-10-22 Thread Nehal J Wani
if [ -n $DNSMASQ_IAID ]; then mac=$DNSMASQ_MAC # IPv6 The existence of the environment variable DNSMASQ_MAC is not mentioned in the man page formed from the recent pull of dnsmaq code. It would be helpful if someone could add it :) -- Nehal J Wani

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-10-22 Thread Nehal J Wani
On Tue, Oct 22, 2013 at 11:44 PM, Simon Kelley si...@thekelleys.org.uk wrote: On 22/10/13 19:09, Nehal J Wani wrote: if [ -n $DNSMASQ_IAID ]; then mac=$DNSMASQ_MAC # IPv6 The existence of the environment variable DNSMASQ_MAC is not mentioned in the man page formed from the recent pull

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-10-03 Thread Nehal J Wani
as tarball and when will it be available in the fedora repositories? (I don't know who maintains the package buildings, but a tentative date would be fine) -- Nehal J Wani ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-24 Thread Nehal J Wani
:db8:ca2:2:1::67 * 00:01:00:01:19:d3:f1:da:52:54:00:c3:73:d7 1380007610 2770926 2001:db8:ca2:2:1::3e * 00:01:00:01:19:d3:ed:2a:52:54:00:2a:47:ee Thanks for the info. -- Nehal J Wani UG3, BTech CS+MS(CL) IIIT-Hyderabad http://commandlinewani.blogspot.com -- Nehal J Wani

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-24 Thread Nehal J Wani
On Tue, Sep 24, 2013 at 1:15 AM, Simon Kelley si...@thekelleys.org.uk wrote: On 23/09/13 19:12, Nehal J Wani wrote: If I am not wrong, there are 5 fields in a dnsmasq/network-name.leases file: (i) Expiry time (ii) MAC Address (iii) IP Address (iv) Hostname (v) Client ID Q1

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-24 Thread Nehal J Wani
On Tue, Sep 24, 2013 at 3:37 PM, Simon Kelley si...@thekelleys.org.uk wrote: On 24/09/13 10:48, Nehal J Wani wrote: On Tue, Sep 24, 2013 at 1:15 AM, Simon Kelleysi...@thekelleys.org.uk wrote: On 23/09/13 19:12, Nehal J Wani wrote: If I am not wrong, there are 5 fields in a dnsmasq/network

[Dnsmasq-discuss] Reg: Info related to leases file

2013-09-23 Thread Nehal J Wani
, but is it safe to assume that it will be '*' for any value that is unknown?) -- Nehal J Wani UG3, BTech CS+MS(CL) IIIT-Hyderabad http://commandlinewani.blogspot.com ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-23 Thread Nehal J Wani
On Tue, Sep 24, 2013 at 1:15 AM, Simon Kelley si...@thekelleys.org.uk wrote: On 23/09/13 19:12, Nehal J Wani wrote: If I am not wrong, there are 5 fields in a dnsmasq/network-name.leases file: (i) Expiry time (ii) MAC Address (iii) IP Address (iv) Hostname (v) Client ID Q1

[Dnsmasq-discuss] Fwd: Reg: Max Length if an entry

2013-07-25 Thread Nehal J. Wani
I am implementing a public API in libvirt as part of my GSoC project, for which I need to parse the dnsmasq/network-name.leases file. I would like to know the maximum length that an entry can have in the leases file. Thanking You, Nehal J. Wani UG3, BTech CS+MS(CL) IIIT-Hyderabad http