On 11/27/24 05:09, Dimitry Bansikov wrote:
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?

Can you programmatically edit the file?

You might be able to re-structure the list of zone statements so that it's just the zone lines (everything on one line) in a separate (single) file (of all zone statements) and include that (single) file in the proper location in your named.conf file.

I don't know if the include option will allow wildcards or not. If it does, you could put the zone statement for each zone in it's own file and maybe do an include of those files as a wildcard.

... {
    include /path/to/zone_stanza_files/zone_*.conf
}

Type of thing.



--
Grant. . . .
--
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