mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/bind: allow RNDC key updates (#3830)
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= bind
|
||||
PLUGIN_VERSION= 1.29
|
||||
PLUGIN_VERSION= 1.30
|
||||
PLUGIN_COMMENT= BIND domain name service
|
||||
PLUGIN_DEPENDS= bind918
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -10,6 +10,10 @@ WWW: https://www.isc.org
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.30
|
||||
|
||||
* Add ability for RNDC key updates from other nameservers
|
||||
|
||||
1.29
|
||||
|
||||
* Migrate General Log to Syslog
|
||||
|
||||
+5
@@ -23,6 +23,11 @@
|
||||
<type>select_multiple</type>
|
||||
<help>Define the ACLs where you allow which client are allowed to query this zone.</help>
|
||||
</field>
|
||||
<id>domain.allowrndcupdate</id>
|
||||
<label>Allow RDNC key update</label>
|
||||
<type>checkbox</type>
|
||||
<help>Allow updates via the RDNC key named "rndc-key". The key is shown in the general tab.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>domain.ttl</id>
|
||||
<label>TTL</label>
|
||||
|
||||
@@ -72,6 +72,10 @@
|
||||
<Multiple>Y</Multiple>
|
||||
<Required>N</Required>
|
||||
</allowquery>
|
||||
<allowrndcupdate type="BooleanField">
|
||||
<default>1</default>
|
||||
<Required>Y</Required>
|
||||
</allowrndcupdate>
|
||||
<serial type="TextField">
|
||||
<Required>N</Required>
|
||||
</serial>
|
||||
|
||||
@@ -15,3 +15,7 @@ chmod 755 /var/stats
|
||||
mkdir -p /var/log/named
|
||||
chown -R bind:bind /var/log/named
|
||||
chmod 755 /var/log/named
|
||||
|
||||
mkdir -p /usr/local/etc/namedb/primary
|
||||
chown -R bind:bind /usr/local/etc/namedb/primary
|
||||
chmod 755 /usr/local/etc/namedb/primary
|
||||
|
||||
@@ -180,6 +180,11 @@ zone "{{ domain.domainname }}" {
|
||||
{% endfor %}
|
||||
};
|
||||
{% endif %}
|
||||
{% if domain.allowrndcupdate is defined and domain.allowrndc == "1" %}
|
||||
update-policy {
|
||||
grant rndc-key zonesub ANY;
|
||||
};
|
||||
{% endif %}
|
||||
};
|
||||
{% if domain.type == 'secondary' and domain.transferkey is defined and not(domain.transferkeyname in usedkeys) %}
|
||||
{% do usedkeys.append(domain.transferkeyname) %}
|
||||
|
||||
Reference in New Issue
Block a user