]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add synth-from-dnssec namespace entries for forward only namespaces
authorMark Andrews <marka@isc.org>
Thu, 16 Jun 2022 07:12:20 +0000 (17:12 +1000)
committerMark Andrews <marka@isc.org>
Tue, 5 Jul 2022 02:29:01 +0000 (12:29 +1000)
Currently forward entries are only removed on view destruction so
there is no matching dns_view_sfd_del call.

bin/named/server.c

index 81f724abf489454bfd45a9871296f1aeb7fb79c5..0051ba5d305514b592536088c2defef95dd01e68 100644 (file)
@@ -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: