mirror of
https://github.com/Luzifer/dns.git
synced 2024-12-22 19:01:20 +00:00
18 lines
690 B
Django/Jinja
18 lines
690 B
Django/Jinja
; Auto-generated using generateZonefiles.py
|
|
|
|
$ORIGIN {{ zone }}.
|
|
$TTL {{ ttl }}
|
|
|
|
{{ zone }}. {{ ttl }} IN SOA {{ soa.auth_ns }} {{ soa.contact }} {{ soa.serial }} {{ soa.refresh }} {{ soa.retry }} {{ soa.expire }} {{ soa.ttl }}
|
|
|
|
{% for ns in nameserver -%}
|
|
{{ zone }}. {{ ttl }} IN NS {{ ns }}
|
|
{% endfor %}
|
|
{%- if mailserver | length > 0 %}
|
|
{% for mailserver, weight in mailserver | dictsort -%}
|
|
{{ zone }}. {{ ttl }} IN MX {{ weight }} {{ mailserver }}
|
|
{% endfor -%}
|
|
{%- endif %}
|
|
{% for entry in entries -%}
|
|
{{ entry.name }} {{ entry.ttl | default(ttl) }} {{ entry.class | default('IN') }} {{ entry.type }} {% if entry.weight %}{{ entry.weight }} {% endif %}{{ entry.data }}
|
|
{% endfor -%}
|