]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix default IANA root zone mirror configuration
authorMichał Kępień <michal@isc.org>
Thu, 9 Jan 2025 11:16:48 +0000 (12:16 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 9 Jan 2025 11:25:33 +0000 (12:25 +0100)
commit1e9eab2b5d6b0f233b4b4bf36839692cd8629ea1
treeda2e2d71a89a9886480ff9afc553ca3c82615d1e
parentcc0cbbe697cdaf2a81aff62ac94b89956eaf1399
Fix default IANA root zone mirror configuration

Commit 4555a319345ba96f8ba4b56b5423a865f3f40450 renamed the top-level
"primaries" block in bin/named/config.c to "remote-servers".  This
configuration block lists the primary servers used for an IANA root zone
mirror when no primary servers are explicitly specified for it in the
configuration.  However, the relevant part of the named_zone_configure()
function only looks for a top-level "primaries" block and not for any of
its synonyms.  As a result, configuring an IANA root zone mirror with
just:

    zone "." {
        type mirror;
    };

now results in a cryptic fatal error on startup:

    loading configuration: not found
    exiting (due to fatal error)

Fix by using the correct top-level block name in named_zone_configure().

(cherry picked from commit 010d2eb4360afd5f4049491f5e73e25003895106)
bin/named/zoneconf.c