mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 15:09:59 -04:00
Fix default IANA root zone mirror configuration
Commit4555a31934renamed 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 commit010d2eb436)
This commit is contained in:
parent
cc0cbbe697
commit
1e9eab2b5d
1 changed files with 1 additions and 1 deletions
|
|
@ -1811,7 +1811,7 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||
dns_name_equal(dns_zone_getorigin(zone), dns_rootname))
|
||||
{
|
||||
result = named_config_getremotesdef(
|
||||
named_g_config, "primaries",
|
||||
named_g_config, "remote-servers",
|
||||
DEFAULT_IANA_ROOT_ZONE_PRIMARIES, &obj);
|
||||
CHECK(result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue