[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bind-workers
Subject:    Re: Amend named.conf
From:       Josef Moellers <jmoellers () suse ! de>
Date:       2020-10-29 10:09:13
Message-ID: e6e7d571-3891-c947-95a2-89554fe2c46e () suse ! de
[Download RAW message or body]

On 29.10.20 11:00, Tony Finch wrote:
> Josef Moellers <jmoellers@suse.de> wrote:
>>
>> Strangely enough the "BIND 9 Administrator Reference Manual" has this:
>> "(or files if a valid glob expression is detected" (Section 4.2.6).
> 
> Whoops! Thanks for the correction :-)

Yes, but it dowsn't work!
I've implemented globbing (and single-level subdirectories *) and it
works OK. All I need to know is if I can use "glob()" (which is in
POSIX), as asked in a mail I sent out this morning.

* With this I mean that the code I now have does this:
1) glob() the argument of "include"
2) for each entry in the resulting list:
2.1) if it is a file, source that file
2.2) if it is a directory, step through that directory and source ONLY
THE PLAIN FILES THERE, ie do not recurse into subdirectories.

Background is that we ship an /etc/named.conf file and I would like this
to not be modified but stuff (eg a plugin spec) to be added to a
subdirectory. So I'd just add
include "named.d/*";
the named.conf and be done with it.

Josef
-- 
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5
90409 Nürnberg
Germany

(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
_______________________________________________
bind-workers mailing list
bind-workers@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-workers

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic