diff --git a/dns/bind/Makefile b/dns/bind/Makefile index c286695d6..41b0af268 100644 --- a/dns/bind/Makefile +++ b/dns/bind/Makefile @@ -1,6 +1,5 @@ PLUGIN_NAME= bind -PLUGIN_VERSION= 1.8 -PLUGIN_REVISION= 2 +PLUGIN_VERSION= 1.9 PLUGIN_COMMENT= BIND domain name service PLUGIN_DEPENDS= bind914 PLUGIN_MAINTAINER= m.muenz@gmail.com diff --git a/dns/bind/pkg-descr b/dns/bind/pkg-descr index c3cea7038..8b5bce232 100644 --- a/dns/bind/pkg-descr +++ b/dns/bind/pkg-descr @@ -8,6 +8,10 @@ necessary for asking and answering name service questions. Plugin Changelog ================ +1.9 + +* Allow IPv4-only mode + 1.8 * Fix template generation when there is only one zone configured 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 3a7db5343..2dbfd1a64 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 @@ -5,6 +5,12 @@ checkbox This will activate the BIND daemon. + + general.disablev6 + + checkbox + This will run BIND in IPv4-only mode. + general.listenv4 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 5edbb8abf..0c776ad6f 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 @@ -1,12 +1,16 @@ //OPNsense/bind/general BIND configuration - 1.0.5 + 1.0.6 0 Y + + 0 + Y + 1 Y diff --git a/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named b/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named index 70167bad7..1a4c02a00 100644 --- a/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named +++ b/dns/bind/src/opnsense/service/templates/OPNsense/Bind/named @@ -1,5 +1,8 @@ {% if helpers.exists('OPNsense.bind.general.enabled') and OPNsense.bind.general.enabled == '1' %} named_var_script="/usr/local/opnsense/scripts/OPNsense/Bind/setup.sh" +{% if helpers.exists('OPNsense.bind.general.disablev6') and OPNsense.bind.general.disablev6 == '1' %} +named_flags="-4" +{% endif %} {% if helpers.exists('OPNsense.bind.dnsbl.enabled') and OPNsense.bind.dnsbl.enabled == '1' %} {% if helpers.exists('OPNsense.bind.dnsbl.type') and OPNsense.bind.dnsbl.type != '' %} named_dnsbl="{{ OPNsense.bind.dnsbl.type }}"