Re: Zones list mask or wildcard

2024-12-04 Thread Danilo Godec via bind-users
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

Re: Zones list mask or wildcard

2024-12-03 Thread Grant Taylor via bind-users
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 statement

Re: Zones list mask or wildcard

2024-12-02 Thread Lars Kollstedt
On 27.11.24 um 12:09 Dimitry Bansikov: 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

Re: Zones list mask or wildcard

2024-11-27 Thread Cathy Almond
No - new zones added dynamically don't go into named.conf or any include files of named.conf (these I suspect are part of a default OS distribution default set-up that you've adopted, but include files are often used anyway). They go into another file or database that named accesses at start-u

Re: Zones list mask or wildcard

2024-11-27 Thread Dimitry Bansikov
They are all different with different A/MX/CNAME records. I just looking for easier and most performance way to manage zones. Just by adding/deleting zone file. Best way, if i can setup a directory with all zones (files) and bind can read/include all files from this directory without writing "z

Re: Zones list mask or wildcard

2024-11-27 Thread G.W. Haywood
Hi there, On Wed, 27 Nov 2024, 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? I'm sure it's possible. If it were my "big list", and I could see no alternative bu

Re: Zones list mask or wildcard

2024-11-27 Thread Cathy Almond
On 27/11/2024 11: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

Re: Zones list mask or wildcard

2024-11-27 Thread Dimitry Bansikov
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 edi

Re: Zones list mask or wildcard

2024-11-27 Thread Dimitry Bansikov
Unfortunately, it looks like this is not what i need. 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

Re: Zones list mask or wildcard

2024-11-27 Thread Cathy Almond
On 27/11/2024 09:54, Dimitry Bansikov wrote: Hello. I can’t find a way to configure all zones files as wildcard. As example i have some configuration with 1000 zones and the list file is big: zone "example1.org" {type master; file "/etc/bind/zones/example1.org.db";}; zone "example2.org" {type m

Re: Zones list mask or wildcard

2024-11-27 Thread Darren Ankney
Hi Dimitry, Perhaps catalog zones (https://bind9.readthedocs.io/en/v9.18.31/chapter6.html#configuring-catalog-zones) might help? Thank you, Darren Ankney On Wed, Nov 27, 2024 at 4:54 AM Dimitry Bansikov wrote: > > Hello. > I can’t find a way to configure all zones files as wildcard. > As exampl

Zones list mask or wildcard

2024-11-27 Thread Dimitry Bansikov
Hello. I can’t find a way to configure all zones files as wildcard. As example i have some configuration with 1000 zones and the list file is big: zone "example1.org" {type master; file "/etc/bind/zones/example1.org.db";}; zone "example2.org" {type master; file "/etc/bind/zones/example2.org.db";