nsd
nsd copied to clipboard
Doesn't reload zone when included files change
When I make a change to a file $INCLUDE
d 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.
~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.
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.
Actually I made a mistake to close it because the answer is for config files, not zone files.