First commit - Added DNS playbooks
This commit is contained in:
commit
2a01f9e57d
8 changed files with 143 additions and 0 deletions
22
templates/ns/zone/named.conf.primary-zone.j2
Normal file
22
templates/ns/zone/named.conf.primary-zone.j2
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
acl "{{ domain_name }}-acl" {
|
||||
{% if transfer_hosts %}
|
||||
{% for ip in transfer_hosts %}
|
||||
{{ ip }};
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
none;
|
||||
{% endif %}
|
||||
};
|
||||
|
||||
zone "{{ domain_name }}" IN {
|
||||
type master;
|
||||
file "{{ dns.paths.primary_zones }}/db.{{ domain_name }}";
|
||||
#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 }}";
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue