Zones list mask or wildcard

Danilo Godec danilo.godec at agenda.si
Wed Dec 4 11:28:50 UTC 2024


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?
>
>




More information about the bind-users mailing list