fix: minor change in db.j2 file
This commit is contained in:
parent
f8ad1d6c9a
commit
94035b835c
1 changed files with 6 additions and 6 deletions
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
$TTL {{ item.value.ttl|default(3600) }}
|
$TTL {{ item.value.ttl|default(3600) }}
|
||||||
@ IN SOA {{ item.value.ns_primary }}. {{ item.value.mail|replace('@', '.') }}. (
|
@ IN SOA {{ item.value.ns_primary }}. {{ item.value.mail|replace('@', '.') }}. (
|
||||||
{{ item.value.serial }} ; Serial
|
{{ item.value.serial }} ; Serial
|
||||||
{{ item.value.refresh|default(14400) }} ; Refresh
|
{{ item.value.refresh|default(14400) }} ; Refresh
|
||||||
{{ item.value.retry|default(86400) }} ; Retry
|
{{ item.value.retry|default(86400) }} ; Retry
|
||||||
{{ item.value.expire|default(2419200) }} ; Expire
|
{{ item.value.expire|default(2419200) }} ; Expire
|
||||||
{{ item.value.negative_cache|default(86400) }} ; Negative Cache TTL
|
{{ item.value.negative_cache|default(86400) }} ; Negative Cache TTL
|
||||||
)
|
)
|
||||||
|
|
||||||
{% for entry in item.value.entries %}
|
{% for entry in item.value.entries %}
|
||||||
{% if entry.type|upper == 'MX' %}
|
{% if entry.type|upper == 'MX' %}
|
||||||
{{ entry.name }}{% for i in range(0, 15 - entry.name|length) %} {% endfor %} IN MX {{ entry.priority }} {{ entry.value }}
|
{{ entry.name }}{% for i in range(0, 15 - entry.name|length) %} {% endfor %} IN MX {{ entry.priority }} {{ entry.value }}
|
||||||
{% elif entry.type|upper == 'TXT' %}
|
{% elif entry.type|upper == 'TXT' %}
|
||||||
{{ entry.name }} IN {{ entry.type|upper }} (
|
{{ entry.name }}{% for i in range(0, 15 - entry.name|length) %} {% endfor %} IN {{ entry.type|upper }} (
|
||||||
{% for charset in entry.value|batch(64) %}
|
{% for charset in entry.value|batch(64) %}
|
||||||
"{{ charset|join('') }}"
|
"{{ charset|join('') }}"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue