nsd icon indicating copy to clipboard operation
nsd copied to clipboard

Doesn't reload zone when included files change

Open madduck opened this issue 4 years ago • 3 comments

When I make a change to a file $INCLUDEd in a zone file, nsd cowardly refuses to reload the zone, claiming that the zone file hasn't been modified on disk. It hasn't, but nsd should be checking included files as well, and reload if any files in the include tree have been modified.

madduck avatar Dec 29 '19 02:12 madduck

~Do you probably look for the reconfig command? From my understanding, NSD differentiates between zone configuration and zone data.~

~zone configuration needs the reconfig, zone data the reload command in nsd-control.~

~I use some heavy file inclusion in a setup of mine. When a zone, that is included as a file changes (e.g. gets new configuration for AXFR), I submit a reconfig via nsd-control to make NSD recognize these changes. When the zone file for a primary zone changes, I use the reload command. Works like a charm.~

Edit: Cancel that, I misunderstood the issue and thought about including via config file, not about the $INCLUDE directive in bind style zonefiles.

and0x000 avatar Jun 16 '20 12:06 and0x000

Yes! That's it. reconfig sounds like it is the ticket. The other command only checks the file modification times of the zone file itself.

wcawijngaards avatar Jun 16 '20 13:06 wcawijngaards

Actually I made a mistake to close it because the answer is for config files, not zone files.

wcawijngaards avatar Jun 16 '20 13:06 wcawijngaards