-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't reload zone when included files change #57
Comments
Edit: Cancel that, I misunderstood the issue and thought about including via config file, not about the |
Yes! That's it. |
Actually I made a mistake to close it because the answer is for config files, not zone files. |
@wcawijngaards, @wtoorop, is this something we want to implement? We'd need to do dependency checking for zones. I'm thinking this could be implemented via a callback in simdzone when an |
@k0ekk0ek that sounds like the ticket, and what you suggests with callbacks makes it rather elegant, at least if I picture this right. The other approach of course might be to simply recompile the zone using the standard path honouring Then again: how would it actually hurt if the zone was just reloaded, even if unchanged? |
Yes, I think a callback and checking all files in the list for modification is a good approach. That feature is useful, to reload zones if the included files change. The mtime check is useful, because some set ups have large zone files. It is then useful to only reload the zone files that have changed, instead of everything. |
Fixed once PR #377 is merged. |
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, butnsd
should be checking included files as well, and reload if any files in the include tree have been modified.The text was updated successfully, but these errors were encountered: