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

Michael michael at kmaclub.com
Fri Sep 3 14:12:58 UTC 2021


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 really need this? I mean, if dhcp server dies and you have a 
> stand-by backup that takes over immediately, the renew request from 
> the hosts will be to use the same IP address, so if you don't have the 
> dnsmasq.lease file, ergo there are no leases at the moment, dnsmasq 
> would grant the same (requested) IP address.
>

Without the leases file, you won't have the DNS mapping for those hosts 
that have been handed out a DHCP lease.   I am not sure if those will 
come back upon renew or if it has to wait until a new request comes in.


Michael


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210903/22fa1f28/attachment.htm>


More information about the Dnsmasq-discuss mailing list