]> 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>
Wed, 6 Jul 2022 21:47:45 +0000 (07:47 +1000)
Currently forward entries are only removed on view destruction so
there is no matching dns_view_sfd_del call.

(cherry picked from commit a559d6fdd13cc617ea2baae2df2e23eda3e06abb)

bin/named/server.c

index 4318c5ca991eb76dbc682c6277501ca853654b77..73dcdacbb12225f2e915f882b09c7d1e5499b835 100644 (file)
@@ -6344,6 +6344,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: