echoip-slatecave/templates/dig.html

46 lines
963 B
HTML
Raw Normal View History

2023-02-12 01:24:39 +01:00
<!DOCTYPE html>
2023-02-12 17:35:32 +01:00
{% set r = data.result %}
{% set q = data.query %}
2023-02-12 01:24:39 +01:00
<html>
<head>
2023-02-12 17:35:32 +01:00
<title>Dig: {{ q.name }}</title>
2023-02-12 01:24:39 +01:00
</head>
<body>
2023-02-12 17:35:32 +01:00
<h1>Lookup for: {{ q.name }}</h1>
{% if r.a %}
2023-02-18 22:16:09 +01:00
<p><code>A</code> (IPv4) records:</p>
2023-02-12 01:24:39 +01:00
<ul>
2023-02-12 17:35:32 +01:00
{% for address in r.a%}
2023-02-18 22:16:09 +01:00
<li><code><a href="/ip?ip={{address}}">{{address}}</a></code></li>
2023-02-12 01:24:39 +01:00
{% endfor %}
</ul>
2023-02-18 22:16:09 +01:00
{% else %}
<p>No <code>A</code> (IPv4) Records.</p>
2023-02-12 01:24:39 +01:00
{% endif %}
2023-02-12 17:35:32 +01:00
{% if r.aaaa %}
2023-02-18 22:16:09 +01:00
<p><code>AAAA</code> (IPv6) records:</p>
2023-02-12 01:24:39 +01:00
<ul>
2023-02-12 17:35:32 +01:00
{% for address in r.aaaa%}
2023-02-18 22:16:09 +01:00
<li><code><a href="/ip?ip={{address}}">{{address}}</a></code></li>
2023-02-12 01:24:39 +01:00
{% endfor %}
</ul>
2023-02-18 22:16:09 +01:00
{% else %}
<p>No <code>AAAA</code> (IPv6) Records.</p>
2023-02-12 01:24:39 +01:00
{% endif %}
2023-02-12 17:35:32 +01:00
{% if r.mx %}
2023-02-18 22:16:09 +01:00
<p><code>MX</code> (Mail Exchange) records:</p>
2023-02-12 01:24:39 +01:00
<ul>
2023-02-12 17:35:32 +01:00
{% for mx in r.mx%}
2023-02-12 01:24:39 +01:00
<li>{{mx.preference}} <code><a href="/dig?name={{mx.exchange}}">{{mx.exchange}}</a></code></li>
{% endfor %}
</ul>
2023-02-18 22:16:09 +01:00
{% else %}
<p>No <code>MX</code> (Mail Exchange) records.</p>
2023-02-12 01:24:39 +01:00
{% endif %}
</body>
</html>