Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Simon Kelley
A DHCP client will try to renew it's lease half way through the time span of the lease by talking to the DHCP server it got the lease from. It will continue to use the address for the rest of the lease span if it doesn't get a reply, and 7/8ths of the time through the lease it will start to broadca

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Michael
On 9/3/21 7:02 AM, Chris Green wrote: I was thinking about the usual "one local server and 1.1.1.1 or 8.8.8.8 as secondary" but now I think about it I suppose there's nothing difficult about providing two local servers. However will having one of them non-functional slow things down at all? S

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Jesus M Diaz
On Fri, 3 Sept 2021 at 15:16, Chris Green wrote: > On Fri, Sep 03, 2021 at 01:58:54PM +0100, Jesus M Diaz wrote: > > I wasn't considering erasing/deleting the dnsmasq.leases file, I was > > rather thinking of copying it to a non-running backup dnsmasq so > > that > > if/when t

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Michael
On 9/3/21 5:58 AM, Jesus M Diaz wrote: I wasn't considering erasing/deleting the dnsmasq.leases file, I was rather thinking of copying it to a non-running backup dnsmasq so that if/when the running dnsmasq fails I can start the other and it will give out the same IPs. Do you re

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Chris Green
On Fri, Sep 03, 2021 at 01:58:54PM +0100, Jesus M Diaz wrote: > I wasn't considering erasing/deleting the dnsmasq.leases file, I was > rather thinking of copying it to a non-running backup dnsmasq so > that > if/when the running dnsmasq fails I can start the other and it will >

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Chris Green
On Fri, Sep 03, 2021 at 12:08:20PM +0100, Ed W wrote: > On 03/09/2021 11:31, Chris Green wrote: > > Two questions really:- > > > > Is the file /var/lib/misc/dnsmasq.leases the only place where > > dnsmasq keeps DHCP/IP/Name information across restarts? I.e. if I > > delete that file wi

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Jesus M Diaz
On Fri, 3 Sept 2021 at 13:41, Chris Green wrote: > On Fri, Sep 03, 2021 at 12:08:20PM +0100, Ed W wrote: > > On 03/09/2021 11:31, Chris Green wrote: > > > Two questions really:- > > > > > > Is the file /var/lib/misc/dnsmasq.leases the only place where > > > dnsmasq keeps DHCP/IP/Name info

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Ed W
On 03/09/2021 11:31, Chris Green wrote: > Two questions really:- > > Is the file /var/lib/misc/dnsmasq.leases the only place where > dnsmasq keeps DHCP/IP/Name information across restarts? I.e. if I > delete that file will new DHCP requests get new IPs? (or does the > client have

[Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Chris Green
Two questions really:- Is the file /var/lib/misc/dnsmasq.leases the only place where dnsmasq keeps DHCP/IP/Name information across restarts? I.e. if I delete that file will new DHCP requests get new IPs? (or does the client have some memory of the last IP it got?) If a clie