18 lines
No EOL
411 B
Django/Jinja
18 lines
No EOL
411 B
Django/Jinja
$ORIGIN {{ item.key }}.
|
|
$TTL 300
|
|
|
|
@ IN SOA {{ bind_nameservers | first }}. noc.{{ item.key }} (
|
|
{{ ansible_date_time.epoch }} ; serial
|
|
7200 ; refresh
|
|
3600 ; retry
|
|
1209600 ; expire
|
|
3600 ; min
|
|
)
|
|
|
|
{% for ns in bind_nameservers %}
|
|
@ IN NS {{ ns }}{{ '.' if not ns.endswith('.') else '' }}
|
|
{% endfor %}
|
|
|
|
{% for record in item.value -%}
|
|
{{ record.name }} IN {{ record.type }} {{ record.value }}
|
|
{% endfor %} |