[nsd-users] nsd4 not detecting changed included files when rebuilding database
wouter at nlnetlabs.nl
Mon Mar 10 12:24:56 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
On 03/10/2014 12:47 PM, Jeroen Massar wrote:
> nsd4 is trying to be too smart and thus when a 'reload' or even a
> 'restart' is issued the database is not being rebuild properly when
> one uses includes.
> It seems (I did for once not read the code ;) that nsd checks the
> filetime of the files as configured in a 'zone' statement, and
> based on the changetime of that file it then decided to rebuild the
> zone or not.
> Hence, if the primary file is not changed, but an included file
> has changed, the zone will not be rebuild.
> Quick work-around: touch *, and then a nsd-control reload
> It would great if the rebuilding logic would either always rebuild
> zones that contain includes, or possibly better, keep a 'include'
> list and then based on the actual files did a rebuild or not.
Thank you for the description, that is certainly a feature that looks
like a good idea. Not sure if we can keep track of the included-files
in memory, but perhaps we can do that in a simple manner.
> I am not sure if it does that now or if it is possinle, but having
> a per-file 'compiled' version could work here too, then if there is
> a small include and another big include, only the small one will
> be reparsed/compiled while the big non-changed one does not have to
> be handled.
> Greets, Jeroen _______________________________________________
> nsd-users mailing list nsd-users at NLnetLabs.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the nsd-users