Hello, 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 ? -- Best regards, Artur
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
Hi Artur, You can set "zonefiles-write" option in the "server" section to a low value like "1", which will make NSD write the zone file to disk almost immediately after an update. Regards, Anand On Wed, 19 Mar 2025 at 15:10, Artur via nsd-users < nsd-users at lists.nlnetlabs.nl> wrote:> Hello, > > 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 ? > > -- > Best regards, > Artur > > _______________________________________________ > nsd-users mailing list > nsd-users at lists.nlnetlabs.nl > https://lists.nlnetlabs.nl/mailman/listinfo/nsd-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20250319/d6e7dc58/attachment.htm>