mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-17 06:23:29 +02:00
Made templates work with new data.
This commit is contained in:
@ -26,7 +26,7 @@ Your IDN would decode to
|
||||
{% set r = data.result.records -%}
|
||||
## DNS Records
|
||||
{% if r.nxdomain %}
|
||||
Our DNS-Server claims that this domain doesn't exist, you shouldn't see any results below.
|
||||
Our DNS-Server claims that this domain doesn't exist, there shouldn't be any results.
|
||||
{%- elif r.timeout -%}
|
||||
There was at least one timeout error while resolving this domain, the results below are incomplete.
|
||||
{%- elif r.other_error -%}
|
||||
@ -61,7 +61,7 @@ A (IPv4) records:
|
||||
{% for address in r.a -%}
|
||||
* {{ address }}
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No A (IPv4) Records.
|
||||
{% endif -%}
|
||||
|
||||
@ -70,7 +70,7 @@ AAAA (IPv6) records:
|
||||
{% for address in r.aaaa -%}
|
||||
* {{ address }}
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No AAAA (IPv6) Records.
|
||||
{% endif -%}
|
||||
|
||||
@ -81,7 +81,7 @@ MX (Mail Exchange) records:
|
||||
{% for mx in r.mx | sort(attribute="preference") | reverse -%}
|
||||
* {{ mx.preference }} {{ mx.exchange }}
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No MX (Mail Exchange) records.
|
||||
{% endif %}
|
||||
|
||||
@ -96,7 +96,7 @@ SOA (Source Of Authority) records:
|
||||
* expire: {{soa.expire / 3600 | round(precision=2)}}h
|
||||
* minimum: {{soa.minimum / 60 | round(precision=2)}}m TTL
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No SOA (Source Of Authority) records.
|
||||
{% endif %}
|
||||
|
||||
@ -105,7 +105,7 @@ NS (Name Server) records:
|
||||
{% for ns in r.ns -%}
|
||||
* {{ns}}
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No NS (Name Server) records.
|
||||
{% endif %}
|
||||
|
||||
@ -114,7 +114,7 @@ CAA (Certification Authority Authorization) records:
|
||||
{% for caa in r.caa -%}
|
||||
* {{caa}}
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No CAA (Certification Authority Authorization) records.
|
||||
{% endif %}
|
||||
|
||||
@ -123,7 +123,7 @@ TXT records:
|
||||
{% for txt in r.txt -%}
|
||||
* {{txt}}
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No TXT records.
|
||||
{% endif %}
|
||||
|
||||
@ -135,7 +135,7 @@ SRV records:
|
||||
* Port: {{srv.port}}
|
||||
* Target: {{srv.target}}
|
||||
{% endfor %}
|
||||
{%- else %}
|
||||
{%- elif not r.nxdomain %}
|
||||
No SRV records.
|
||||
|
||||
SRV or Service records usually live on their own subdomains like {{ "_xmpp-client._tcp."~data.query }}.
|
||||
|
Reference in New Issue
Block a user