[Dnsmasq-discuss] When does dnsmasq read the leases file?
Petr Menšík
pemensik at redhat.com
Thu Feb 10 23:16:52 UTC 2022
When it starts. It has own data stored in-memory and just rewrites lease
file. It would not read any new leases from it if some other service
pushed them there. If dnsmasq is restarted, it starts a new process. It
has to read all configuration all again, which has to be done for leases.
On 2/10/22 22:33, Chris Green wrote:
> As per the subject when does dnsmasq [re]read the leases file?
>
> I am experimenting with my backup DHCP/DNS strategy and I have just
> stopped my dnsmasq server and started another listening on the first
> dnsmasq server's IP address. It's working OK'ish. However the new
> dnsmasq server doesn't (of course) know the name/IP pairs that the old
> dnsmasq server had in its memory.
>
> If I had copied the dnsmasq.lease file across from the old server to
> the new one would that help? Is there some way to tell dnsmasq to
> reload its memory from the file? If dnsmasq is restarted (e.g. by
> systemd) does it read the dnsmasq.leases file?
>
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
More information about the Dnsmasq-discuss
mailing list