Loading all zone files in a directory

Jan-Piet Mens jpmens.dns at gmail.com
Sat Jul 23 14:50:55 UTC 2016


>> include /etc/nginx/conf.d/*.conf;
>
>Bind seems to lack an equivalent syntax. That means that even if I copy
>a self-contained zone file to the zones directory, I still have to
>manually register the zone in the named.conf.local file.

That should be pretty trivial to template together with Ansible and/or use 
'assemble' to create the final version. Alternatively, look at `rndc addzone'.  

(Also, have you looked at existing roles of which there are several?)

>Is there a way to get Bind to automatically include config files in a
>directory? If not, might it make sense to place a feature request for
>this with the Bind developers?

Please no: this is trivial to accomplish with scripting; I think BIND is 
featureful enough as it stands. ;-)

	-JP


More information about the bind-users mailing list