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 6b52705ab..bd3bcc951 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 @@ -33,6 +33,20 @@ text Set the port the service should listen to. + + general.transfersource + + text + true + This determines which local address is bound to IPv4 TCP connections used to fetch zones transferred inbound by the server. + + + general.transfersourcev6 + + text + true + This determines which local address is bound to IPv6 TCP connections used to fetch zones transferred inbound by the server. + general.forwarders 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 2411472f1..1d0dc3c7f 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 @@ -27,6 +27,16 @@ Y Y + + N + ipv4 + N + + + N + ipv6 + N + 53530 Y 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 1a8de537a..72acb1353 100644 --- a/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf +++ b/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named.conf @@ -22,6 +22,14 @@ options { listen-on-v6 port {{ OPNsense.bind.general.port }} { {{ OPNsense.bind.general.listenv6.replace(',', '; ') }}; }; {% endif %}{% endif %} +{% if helpers.exists('OPNsense.bind.general.transfersource') and OPNsense.bind.general.transfersource != '' %} + transfer-source {{ OPNsense.bind.general.transfersource }}; +{% endif -%} + +{% if helpers.exists('OPNsense.bind.general.transfersourcev6') and OPNsense.bind.general.transfersourcev6 != '' %} + transfer-source-v6 {{ OPNsense.bind.general.transfersourcev6 }}; +{% endif -%} + {% if helpers.exists('OPNsense.bind.general.forwarders') and OPNsense.bind.general.forwarders != '' %} forwarders { {{ OPNsense.bind.general.forwarders.replace(',', '; ') }}; }; {% endif %}