From a559d6fdd13cc617ea2baae2df2e23eda3e06abb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 16 Jun 2022 17:12:20 +1000 Subject: [PATCH] Add synth-from-dnssec namespace entries for forward only namespaces Currently forward entries are only removed on view destruction so there is no matching dns_view_sfd_del call. --- bin/named/server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/named/server.c b/bin/named/server.c index 81f724abf4..0051ba5d30 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -6321,6 +6321,10 @@ configure_forward(const cfg_obj_t *config, dns_view_t *view, goto cleanup; } + if (fwdpolicy == dns_fwdpolicy_only) { + dns_view_sfd_add(view, origin); + } + result = ISC_R_SUCCESS; cleanup: