Enhancement: Structure
This commit is contained in:
parent
ea74e0b246
commit
2b6c1ed108
5 changed files with 22 additions and 20 deletions
22
playbooks/tasks/ns/templates/named.conf.primary-zone.j2
Normal file
22
playbooks/tasks/ns/templates/named.conf.primary-zone.j2
Normal 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 }}";
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue