dns/bind: allow IPv4-only mode (#1539)

This commit is contained in:
Michael 2019-10-12 18:22:07 +02:00 committed by Franco Fichtner
parent 08b815a54d
commit e3b7837851
5 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -5,6 +5,12 @@
<type>checkbox</type>
<help>This will activate the BIND daemon.</help>
</field>
<field>
<id>general.disablev6</id>
<label>Disable IPv6</label>
<type>checkbox</type>
<help>This will run BIND in IPv4-only mode.</help>
</field>
<field>
<id>general.listenv4</id>
<label>Listen IPs</label>

View File

@ -1,12 +1,16 @@
<model>
<mount>//OPNsense/bind/general</mount>
<description>BIND configuration</description>
<version>1.0.5</version>
<version>1.0.6</version>
<items>
<enabled type="BooleanField">
<default>0</default>
<Required>Y</Required>
</enabled>
<disablev6 type="BooleanField">
<default>0</default>
<Required>Y</Required>
</disablev6>
<enablerpz type="BooleanField">
<default>1</default>
<Required>Y</Required>

View File

@ -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 }}"