dns/bind: light refactor for better diff

This commit is contained in:
Franco Fichtner 2024-09-19 15:21:53 +01:00
parent 27bb69523f
commit e894be0e1a
3 changed files with 12 additions and 9 deletions

View file

@ -1,6 +1,5 @@
PLUGIN_NAME= bind
PLUGIN_VERSION= 1.32
PLUGIN_REVISION= 1
PLUGIN_VERSION= 1.33
PLUGIN_COMMENT= BIND domain name service
PLUGIN_DEPENDS= bind918
PLUGIN_MAINTAINER= m.muenz@gmail.com

View file

@ -9,6 +9,10 @@ WWW: https://www.isc.org
Plugin Changelog
================
1.33
* Add option to allow the rndc-key for zone transfers (contributed by Naomi Rennie-Waldock)
1.32
* Fix handling of multiple ACLs in allow-query/allow-transfer (contributed by Nathan Rennie-Waldock)

View file

@ -166,15 +166,15 @@ zone "{{ domain.domainname }}" {
{% endif %}
{% if domain.allowtransfer is defined or (domain.allowrndctransfer is defined and domain.allowrndctransfer == "1") %}
allow-transfer {
{% if domain.allowrndctransfer is defined and domain.allowrndctransfer == "1" %}
{% if domain.allowrndctransfer is defined and domain.allowrndctransfer == "1" %}
key "rndc-key";
{% endif %}
{% if domain.allowtransfer is defined %}
{% for acl in domain.allowtransfer.split(',') %}
{% set transfer_acl = helpers.getUUID(acl) %}
{% endif %}
{% if domain.allowtransfer is defined %}
{% for acl in domain.allowtransfer.split(',') %}
{% set transfer_acl = helpers.getUUID(acl) %}
{{ transfer_acl.name }};
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
};
{% endif %}
{% if domain.allowquery is defined %}