mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Dns/bind - add query-source(-v6) to advanced options (#2629)
This commit is contained in:
committed by
GitHub
parent
f259171e57
commit
3ef0e32bcd
+1
-1
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= bind
|
||||
PLUGIN_VERSION= 1.18
|
||||
PLUGIN_VERSION= 1.19
|
||||
PLUGIN_COMMENT= BIND domain name service
|
||||
PLUGIN_DEPENDS= bind916
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -8,6 +8,10 @@ necessary for asking and answering name service questions.
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.19
|
||||
|
||||
* Add support for "Query Source [IP|IPv6]" options.
|
||||
|
||||
1.18
|
||||
|
||||
* Allow specifying multiple masters for slave zones
|
||||
|
||||
@@ -33,6 +33,20 @@
|
||||
<type>text</type>
|
||||
<help>Set the port the service should listen to.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.querysource</id>
|
||||
<label>Query Source IP</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Specify the IPv4 address used as a source for outbound queries.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.querysourcev6</id>
|
||||
<label>Query Source IPv6</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Specify the IPv6 address used as a source for outbound queries.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.transfersource</id>
|
||||
<label>Transfer Source IP</label>
|
||||
@@ -45,7 +59,7 @@
|
||||
<label>Transfer Source IPv6</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>This determines which local address is bound to IPv6 TCP connections used to fetch zones transferred inbound by the server.</help>
|
||||
<help>Specify the IPv6 address used as a source for zone transfers.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.forwarders</id>
|
||||
|
||||
@@ -27,6 +27,16 @@
|
||||
<Required>Y</Required>
|
||||
<asList>Y</asList>
|
||||
</listenv6>
|
||||
<querysource type="NetworkField">
|
||||
<Required>N</Required>
|
||||
<AddressFamily>ipv4</AddressFamily>
|
||||
<NetMaskAllowed>N</NetMaskAllowed>
|
||||
</querysource>
|
||||
<querysourcev6 type="NetworkField">
|
||||
<Required>N</Required>
|
||||
<AddressFamily>ipv6</AddressFamily>
|
||||
<NetMaskAllowed>N</NetMaskAllowed>
|
||||
</querysourcev6>
|
||||
<transfersource type="NetworkField">
|
||||
<Required>N</Required>
|
||||
<AddressFamily>ipv4</AddressFamily>
|
||||
|
||||
@@ -22,6 +22,14 @@ options {
|
||||
listen-on-v6 port {{ OPNsense.bind.general.port }} { {{ OPNsense.bind.general.listenv6.replace(',', '; ') }}; };
|
||||
{% endif -%}
|
||||
|
||||
{% if helpers.exists('OPNsense.bind.general.querysource') and OPNsense.bind.general.querysource != '' %}
|
||||
query-source {{ OPNsense.bind.general.querysource }};
|
||||
{% endif -%}
|
||||
|
||||
{% if helpers.exists('OPNsense.bind.general.querysourcev6') and OPNsense.bind.general.querysourcev6 != '' %}
|
||||
query-source-v6 {{ OPNsense.bind.general.querysourcev6 }};
|
||||
{% endif -%}
|
||||
|
||||
{% if helpers.exists('OPNsense.bind.general.transfersource') and OPNsense.bind.general.transfersource != '' %}
|
||||
transfer-source {{ OPNsense.bind.general.transfersource }};
|
||||
{% endif -%}
|
||||
|
||||
Reference in New Issue
Block a user