Fixup bind9 zone template

Change-Id: Ib8a4594549c4d98ddb7a49b033d5b08604c737f2
This commit is contained in:
Kiall Mac Innes 2012-12-04 17:35:38 +00:00
parent 960ae0ed76
commit 822c3165d6
1 changed files with 2 additions and 2 deletions

View File

@ -9,12 +9,12 @@ $TTL {{ domain.ttl }}
)
{% for server in servers %}
{{domain.name}}. IN NS {{server.name}}.
{{domain.name}} IN NS {{server.name}}
{%- endfor %}
{% for record in records %}
{% if record.type in ('NS', 'MX', 'CNAME', 'SRV') -%}
{{record.name}} {{record.ttl or ''}} IN {{record.type}} {{record.priority or ''}} {{record.data}}.
{{record.name}} {{record.ttl or ''}} IN {{record.type}} {{record.priority or ''}} {{record.data}}
{%- else -%}
{{record.name}} {{record.ttl or ''}} IN {{record.type}} {{record.priority or ''}} {{record.data}}
{%- endif %}