diff --git a/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/dialogEditBindDomain.xml b/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/dialogEditBindDomain.xml
index dfd13fd20..c5e51d492 100644
--- a/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/dialogEditBindDomain.xml
+++ b/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/dialogEditBindDomain.xml
@@ -11,6 +11,18 @@
textSet the name for this zone. Both forward and reverse zones may be specified, i.e. example.com or 0.168.192.in-addr.arpa.
+
+ domain.allowtransfer
+
+ dropdown
+ Define an ACL where you allow which server can retrieve this zone.
+
+
+ domain.allowquery
+
+ dropdown
+ Define an ACL where you allow which client are allowed to query this zone.
+ domain.type
@@ -41,18 +53,6 @@
header
-
- domain.allowtransfer
-
- dropdown
- Define an ACL where you allow which server can retrieve this zone. If this value is empty, domain transfers from everywhere are allowed.
-
-
- domain.allowquery
-
- dropdown
- Define an ACL where you allow which client are allowed to query this zone.
- domain.ttl
diff --git a/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/general.xml b/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/general.xml
index 1889a6a47..05ea9fb72 100644
--- a/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/general.xml
+++ b/dns/bind/src/opnsense/mvc/app/controllers/OPNsense/Bind/forms/general.xml
@@ -73,6 +73,12 @@
dropdownDefine an ACL where you allow which clients can resolve via this service. Usually use your local LAN.
+
+ general.allowtransfer
+
+ dropdown
+ Define an ACL where you allow which server can retrieve zones.
+ general.dnssecvalidation
diff --git a/dns/bind/src/opnsense/mvc/app/models/OPNsense/Bind/General.xml b/dns/bind/src/opnsense/mvc/app/models/OPNsense/Bind/General.xml
index 1d0dc3c7f..455f87d3d 100644
--- a/dns/bind/src/opnsense/mvc/app/models/OPNsense/Bind/General.xml
+++ b/dns/bind/src/opnsense/mvc/app/models/OPNsense/Bind/General.xml
@@ -72,6 +72,17 @@
NChoose an ACL.
+
+
+
+ OPNsense.Bind.Acl
+ acls.acl
+ name
+
+
+ N
+ N
+ No
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 9309033bc..e6f4a53d2 100644
--- a/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf
+++ b/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf
@@ -46,6 +46,13 @@ options {
{% endfor %}
{% endif %}
+{% if helpers.exists('OPNsense.bind.general.allowtransfer') and OPNsense.bind.general.allowtransfer != '' %}
+{% for list in helpers.toList('OPNsense.bind.general.allowtransfer') %}
+{% set allowtransfer = helpers.getUUID(list) %}
+ allow-transfer { {{ allowtransfer.name }}; };
+{% endfor %}
+{% endif %}
+
{% if helpers.exists('OPNsense.bind.general.maxcachesize') and OPNsense.bind.general.maxcachesize != '' %}
max-cache-size {{ OPNsense.bind.general.maxcachesize }}%;
{% endif %}