From e6dfbfd751ace7a42bf03ec04ba3665af14b70f5 Mon Sep 17 00:00:00 2001 From: Jordan Stacy <53239541+jordanstacy@users.noreply.github.com> Date: Wed, 10 Jul 2024 22:03:02 -0700 Subject: [PATCH] dns/bind: fix handling of multiple ACLs in allow-recursion (#4085) Same fix as #4048 but for allow-recursion --- .../src/opnsense/service/templates/OPNsense/Bind/named.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf b/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf index 8c02915ed..d479cfa16 100644 --- a/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf +++ b/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf @@ -49,7 +49,7 @@ options { {% if helpers.exists('OPNsense.bind.general.recursion') and OPNsense.bind.general.recursion != '' %} recursion yes; allow-recursion { -{% for acl in helpers.toList('OPNsense.bind.general.recursion') %} +{% for acl in OPNsense.bind.general.recursion.split(',') %} {% set recursion_acl = helpers.getUUID(acl) %} {{ recursion_acl.name }}; {% endfor %}