[nsd-users] Write zone file on update

Otto Retter otto at relax.theregoesmy.email
Wed Mar 19 14:56:00 UTC 2025


Artur via nsd-users wrote:
> On secondary dns server, the configured zone files are created then
> written every 3600 seconds (by default).
> These files are not written on zone update received from master.
> Maybe I'm missing something, but I imagine nsd can load these zone files
> and serve records (as long as records are not obsolete) even if the
> master server is unreachable.
> So, to avoid serving obsolete zone data it may be a good idea to update
> zone files as soon as an update incomes.
> Is there any option to do that in nsd ?
> 

Hi Artur,

Not sure if it's exactly what you're looking for, but you could write 
some hook on XFR that calls `nsd-control write`. Probably others have 
some cleaner or more elegant solutions.

- Otto


More information about the nsd-users mailing list