nsd.conf include needs full path
wouter at NLnetLabs.nl
Tue Jan 16 12:57:52 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Ólafur Osvaldsson wrote:
> When I use "include:" in nsd.conf it seems to need a full path.
> I have the following line in my nsd.conf:
> include: "nsd-slave.conf"
> And when I do "nsd-checkconf /usr/local/etc/nsd/nsd.conf" or
> any nsdc command it fails with an error:
> /usr/local/etc/nsd/nsd.conf:64: error: cannot open include file 'nsd-
> slave.conf': No such file or directory
> Unless I run the command in the config directory, then the config
> is marked as "valid" while it realy isn't.
> Could it not use the zonesdir as default path?
Thanks for the bugreport.
The problem now is that it finishes reading all of the config before
looking at the zonesdir setting and changing directory.
It is possible to put the server: entry last in the file (or even a
duplicate server: entry that updates some values to different settings).
So during the config reading it does not yet change working directory.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the nsd-users