Hello Einar!
Did you consider catalog zones?
https://www.knot-dns.cz/docs/3.4/html/configuration.html#catalog-zones
Regards,
David
On 2025-04-11 12:13, Einar Bjarni Halldórsson via knot-dns-users wrote:
Hi,
This is just a possible feature request. We’re planning on using Knot
for user
hosted domains. To do that we’ll have to add and remove zones
dynamically,
so we’ve enabled the config db.
What surprised us is that this means that the config file isn’t used at
all anymore
(except you can use it to prime the config db).
As it is, we’ll have to embrace the config db, which makes our ansible
playbook
more complicated. It’s easy to add a config file template in ansible,
it’s more
complicated to issue `knotc conf-begin; knotc conf-set; knotc
conf-commit` logic.
I wish knot was more like nsd, where you have the config file nsd.conf,
but if
you add zones with `nsd-control addzone ….` it gets added to a seperate
zonelist
file, which nsd reads on startup. It means we can have a static config
file, but
still be able to add and delete zones dynamically.
nsd doesn’t have automatic DNSSEC key management and catalog zones in
knot
are really easy to use, which is why we’re going with knot for this
project. I just
wanted to lay it out there as an idea for the future :)
.einar
--