mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Add a new warning message when processing view configuration
When parsing the configuration file, log a warning message in configure_view() function when encountering a `catalog-zones` option in a view with non-IN rdata class.
This commit is contained in:
parent
92d1e1e347
commit
dfd5a01eba
@ -4132,6 +4132,15 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist, cfg_obj_t *config,
|
|||||||
rpz_configured = true;
|
rpz_configured = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
obj = NULL;
|
||||||
|
if (view->rdclass != dns_rdataclass_in && need_hints &&
|
||||||
|
named_config_get(maps, "catalog-zones", &obj) == ISC_R_SUCCESS)
|
||||||
|
{
|
||||||
|
cfg_obj_log(obj, named_g_lctx, ISC_LOG_WARNING,
|
||||||
|
"'catalog-zones' option is only supported "
|
||||||
|
"for views with class IN");
|
||||||
|
}
|
||||||
|
|
||||||
obj = NULL;
|
obj = NULL;
|
||||||
if (view->rdclass == dns_rdataclass_in && need_hints &&
|
if (view->rdclass == dns_rdataclass_in && need_hints &&
|
||||||
named_config_get(maps, "catalog-zones", &obj) == ISC_R_SUCCESS)
|
named_config_get(maps, "catalog-zones", &obj) == ISC_R_SUCCESS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user