]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: Fix a bug with template filename reuse
authorEvan Hunt <each@isc.org>
Wed, 15 Apr 2026 06:57:27 +0000 (06:57 +0000)
committerEvan Hunt <each@isc.org>
Wed, 15 Apr 2026 06:57:27 +0000 (06:57 +0000)
commitcf11b88e0ee19fda3220300cdd0725a327ecdc90
tree1e784a0dad1e9131430a9be181cc1000c97e89c1
parentbbdca691c05315c2319ddcc5b81b710de3ad1e9c
parentb4ba11f15115e942587e62e3ab91503bd8363813
fix: dev: Fix a bug with template filename reuse

When a zone filename is defined in `named.conf` which will be
written to by the server - i.e., for secondary or dynamically updated
zones - there is a test at configuration time to ensure that the
filename is non-unique.

This test is run before the zone is actually created, so a zone
configured using a template may not have had its filename expanded
yet.  This can cause a configuration to fail because, for example,
multiple zones appear to using the filename `$name.db`.

This has been fixed by adding a new function `dns_zone_expandzonefile()`
and calling it during the uniqueness check.

Merge branch 'each-template-file' into 'main'

See merge request isc-projects/bind9!11769