Nsd-checkconf behaves differently based in direct or include zone:

Hi,

I found that nsd-checkconf -v /etc/nsd/nsd.conf shows all the zone:
sections specified in nsd.conf itself, but not any zone: sections
in its include files.

Paul

Hi Paul,

Which version of NSD? I tried the latest, and it shows all zone:
sections in its include file. Could you otherwise provide the specific
config file (maybe off list).

Matthijs

Paul Wouters wrote:

Hi all,

I also checked the output of our nsd-checkconf and it showed all the zones, even those given in an included file.

I think that nsd-checkconf can't deal too well with relative include statements. That is, if you include a file with a relative path, you have to run nsd-checkconf in the very same directory where the included file is.

Regards,

Antti

Antti Ristimäki wrote:

Hi all,

I also checked the output of our nsd-checkconf and it showed all the
zones, even those given in an included file.

I think that nsd-checkconf can't deal too well with relative include
statements. That is, if you include a file with a relative path, you
have to run nsd-checkconf in the very same directory where the included
file is.

It provides a "cannot open include file" error in the case the include
file cannot be found because of its relative path (instead of skipping
the files).

Matthijs

I tried too, but I can no longer reproduce this. So I'll blame it on
operator error until it comes back again.

Paul