include files in named.conf.local

Kevin Darcy kcd at daimlerchrysler.com
Wed Jul 19 17:06:43 UTC 2006


Thijs Koetsier wrote:
> Hi all, 
>
> Maybe I've been looking for this in the wrong place, but I haven't found an
> answer yet. So, please excuse me if this is answered many times before. 
>
> Is it possible to include files into the named.conf.local (local bind
> configuration) file? I know that single files can be included (include
> "/etc/bind/zones.rfc1918";), but can it also be done for all files in one
> folder? 
>
> In my named.conf.local (Debian), I have, like most of us, numerous entries
> like this: 
>
> zone "example.com" {        
>     type master;        
>     file "/etc/bind/zones/example.com"; 
> }; 
>
> I would like to have files in a folder, eg. /etc/bind/local/example.com, in
> which the above four lines are placed in the file 'example.com'. In my
> named.conf.local I would like to put something like Apache is using: 
> Include /etc/apache2/sites-enabled/[^.#]* 
>
> Whenever I try modifications on that, bind9 won't take it. Does anyone know
> if this method is possible in any way and if so; how can it be done? 
>   
BIND has an include-file mechanism, but it takes an explicit pathname; 
it doesn't support wildcards/globs/regexps.

- Kevin




More information about the bind-users mailing list