Amend named.conf

Lars-Johan Liman liman at netnod.se
Wed Oct 28 09:29:23 UTC 2020


Josef Moellers <jmoellers at suse.de> wrote:
>> Is there a way to add something, eg a "plugin" specification, to
>> bind/named's configuration WITHOUT adding it to named.conf, but rather
>> to a file/directory which is sourced in addition to named.conf?

dot at dotat.at 2020-10-27 13:49 [+0000]:
> Use the `include` directive:
> https://downloads.isc.org/isc/bind9/cur/9.16/doc/arm/html/reference.html#include-statement-grammar

> You can only include a specific file: it doesn't support globbing or .d
> style config directories.

... but if you allow yourself (or your system) to edit the included
file, it can in turn list the files that you want included, like so:


named.conf:
    ...
    ...
    include "include-files.inc";
    ...


include-files.inc:
    ...
    ...
    include "my-first-additions.inc";
    include "my-second-additions.inc";
    include "my-third-additions.inc";
    ...

But globbing and/or a conf.d/ would indeed be nice. :-)

				Cheers,
				  /Liman
-- 
#----------------------------------------------------------------------
# Lars-Johan Liman, M.Sc.               !  E-mail: liman at netnod.se
# Senior Systems Specialist             !  Tel: +46 8 - 562 860 12
# Netnod Internet Exchange, Stockholm   !  http://www.netnod.se/
#----------------------------------------------------------------------


More information about the bind-workers mailing list