2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

4108. [func] A additional nxdomain redirect (nxdomain-redirect)

method is now supported. [RT #37989]
This commit is contained in:
Mark Andrews
2015-04-23 16:57:15 +10:00
parent 37873c28de
commit c82b378115
21 changed files with 837 additions and 45 deletions

View File

@@ -3816,6 +3816,20 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist,
fail_ttl = 300;
dns_view_setfailttl(view, fail_ttl);
/*
* Name space to look up redirect information in.
*/
obj = NULL;
result = ns_config_get(maps, "nxdomain-redirect", &obj);
if (result == ISC_R_SUCCESS) {
dns_name_t *name = dns_fixedname_name(&view->redirectfixed);
CHECK(dns_name_fromstring(name, cfg_obj_asstring(obj), 0,
NULL));
view->redirectzone = name;
} else
view->redirectzone = NULL;
result = ISC_R_SUCCESS;
cleanup: