If nothing else works, you can always 'include' a file that contains configuration stanzas of those zones and then use a script to add new zone stanzas to the file.

# Include config file with thousands of domains
include "/etc/named.d/1000s_domains.conf";



The script could either recreate the whole file every time or it could be a bit clever and check if there are new zone files and only add those and remove those that have been removed.


This is probably 30-45 minutes worth of Bash scripting for the first working prototype and then a couple of hours refining - adding error checking, logging, notifications, etc.


  D.





On 27. 11. 24 12:19, Dimitry Bansikov wrote:
As I wrote earlier, I have 1000 different zones for domains. And to add a new zone or delete an old one, I have to change a file with a large list of lines "zone domain IN {...};".

I need to simplify adding and removing a domain so that it is enough to just add the zone file itself whitout editing the big list. Is this possible? There are simpler options?




--
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to