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

2013-12-16 Thread Nehal J Wani
On 12/17/13, Simon Kelley 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 lease file, so r

Re: [Dnsmasq-discuss] default lease time for dhcp-host entries ?

2013-12-16 Thread Maule Mark
okay, thank you for checking.   On Monday, December 16, 2013 3:27 PM, Simon Kelley wrote: On 16/12/13 21:00, Maule Mark wrote: >> As an alternative to a fake tag to remove the empty field, would it work >> to declare a static dhcp-range in my configuration file to cover the >> addresses that

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] default lease time for dhcp-host entries ?

2013-12-16 Thread Simon Kelley
On 16/12/13 21:00, Maule Mark wrote: As an alternative to a fake tag to remove the empty field, would it work to declare a static dhcp-range in my configuration file to cover the addresses that are managed by the hostsfile? No. As you'd expect, lease times configured for individual hosts over

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

Re: [Dnsmasq-discuss] default lease time for dhcp-host entries ?

2013-12-16 Thread Maule Mark
As an alternative to a fake tag to remove the empty field, would it work to declare a static dhcp-range in my configuration file to cover the addresses that are managed by the hostsfile? On Monday, December 16, 2013 2:47 PM, Maule Mark wrote: I don't think our client is asking for a lease t

Re: [Dnsmasq-discuss] default lease time for dhcp-host entries ?

2013-12-16 Thread Maule Mark
I don't think our client is asking for a lease time.  Or if it was, I would also expect it to make the request on the very first DHCPREQUEST, which gets the correct 1h lease. The double comma is to establish a placeholder field where we can plug in an optional tag: field, which we do in certain

Re: [Dnsmasq-discuss] default lease time for dhcp-host entries ?

2013-12-16 Thread Simon Kelley
On 16/12/13 19:36, Maule Mark wrote: I'm seeing an unexptected (to me) behavior when using a dnsmasq hostsfile and dhcp. To start, my interface (pmi_if) is configured with a lease time of 1h (the default), and I have a blank hostsfile. dhcp-leasefile=/var/lib/axiom/dnsmasq_pmi.leases dhcp-hosts

[Dnsmasq-discuss] default lease time for dhcp-host entries ?

2013-12-16 Thread Maule Mark
I'm seeing an unexptected (to me) behavior when using a dnsmasq hostsfile and dhcp.  To start, my interface (pmi_if) is configured with a lease time of 1h (the default), and I have a blank hostsfile. dhcp-leasefile=/var/lib/axiom/dnsmasq_pmi.leases dhcp-hostsfile=/var/lib/axiom/dnsmasq_pmi_hosts

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

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

Re: [Dnsmasq-discuss] dnsmasq and "AD" flag forwarding

2013-12-16 Thread Tomas Hozza
- Original Message - > I can see at least one bug in the code: in the code-path taken to answer > a query from the cache, the value of the AD flag is never changed: it > simply takes the value that it had in the query. I guess the > "authenticated" status of the data should be cached, and u