Fixed text templates

This commit is contained in:
Slatian
2023-02-25 18:32:09 +01:00
parent 574fe77717
commit e50bd14fcf
3 changed files with 47 additions and 23 deletions

View File

@ -85,6 +85,30 @@ MX (Mail Exchange) records:
No MX (Mail Exchange) records.
{% endif %}
{%- if r.soa %}
SOA (Source Of Authority) records:
{% for soa in r.soa %}
* MName: {{soa.mname}}
* RName: {{soa.rname}}
* Serial: {{soa.serial}}
* Refresh: {{soa.refresh / 60 | round(precision=2)}}m
* Retry: {{soa.retry / 60 | round(precision=2)}}m
* expire: {{soa.expire / 3600 | round(precision=2)}}h
* minimum: {{soa.minimum / 60 | round(precision=2)}}m TTL
{% endfor %}
{%- else %}
No SOA (Source Of Authority) records.
{% endif %}
{%- if r.ns %}
NS (Name Server) records:
{% for ns in r.ns -%}
* {{ns}}
{% endfor %}
{%- else %}
No NS (Name Server) records.
{% endif %}
{%- if r.caa %}
CAA (Certification Authority Authorization) records:
{% for caa in r.caa -%}
@ -99,7 +123,7 @@ TXT records:
{% for txt in r.txt -%}
* {{txt}}
{% endfor %}
{%- else -%}
{%- else %}
No TXT records.
{% endif %}