Enhancement: Structure

This commit is contained in:
Stupéflo 2024-05-17 19:10:03 +02:00
parent ea74e0b246
commit 2b6c1ed108
Signed by: stupeflo
GPG key ID: 873D883BD359DEE2
5 changed files with 22 additions and 20 deletions

View file

@ -0,0 +1,22 @@
acl "{{ domain_name }}-acl" {
{% if transfer_hosts is defined and transfer_hosts|length %}
{% for ip in transfer_hosts %}
{{ ip }};
{% endfor %}
{% else %}
none;
{% endif %}
};
zone "{{ domain_name }}" IN {
type master;
file "{{ dns.paths.primary_zones }}/db.{{ domain_name }}.zone";
#auto-dnssec maintain;
inline-signing yes;
dnssec-policy default;
serial-update-method increment;
allow-update { none; };
allow-transfer { {{ domain_name }}-acl; };
notify yes;
key-directory "{{ dns.paths.keys_dir }}";
};