full-dns/templates/zone.conf.j2
2020-08-03 19:25:51 +02:00

21 lines
617 B
Django/Jinja

$ORIGIN {{ zname }}.
$TTL {{ zttl }}
{{ zname }}. SOA {{ zsoa }}. {{ zemail }}. (
{{ ansible_date_time.epoch }} ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
1800 ; ttl
)
NS {{ server.hostname }}.
{% for satellite in satellites %}
NS {{ satellite.hostname }}.
{% endfor %}
{% for record in zmx_records %}
MX{% if record.opts is defined %} {{ record.opts }}{% endif %} {{ record.value }}
{% endfor %}
{% for record in zrecords %}
{{ record.name }} IN {{ record.type }}{% if record.opts is defined %} {{ record.opts }}{% endif %} {{ record.value }}
{% endfor %}