Zones list mask or wildcard

Grant Taylor gtaylor at tnetconsulting.net
Wed Dec 4 00:50:57 UTC 2024


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


More information about the bind-users mailing list