ansible-collection-nameserver/roles/replica/templates/etc/nsd/nsd.conf.d/10-replica.conf.j2

22 lines
415 B
Text
Raw Normal View History

2020-11-19 00:21:11 +01:00
{{ ansible_managed | comment }}
#
# Replica for zones of of primary {{ primary }}
#
pattern:
name: xfr-{{ primary }}
zonefile: "/var/lib/nsd/replica/%szone"
{%- for addr in masters %}
allow-notify: {{ addr }} NOKEY
{%- endfor %}
{%- for addr in masters %}
request-xfr: {{ addr }} NOKEY
{%- endfor %}
{% for zone in zones %}
zone:
2020-11-19 00:46:30 +01:00
name: {{ zone }}.
2020-11-19 00:21:11 +01:00
include-pattern: "xfr-{{ primary }}"
{%- endfor %}