echoip-slatecave/templates/dig.html

40 lines
683 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-12 01:24:39 +01:00
<p>A (IPv4) records:</p>
<ul>
2023-02-12 17:35:32 +01:00
{% for address in r.a%}
2023-02-12 01:24:39 +01:00
<li><code>{{address}}</code></li>
{% endfor %}
</ul>
{% endif %}
2023-02-12 17:35:32 +01:00
{% if r.aaaa %}
2023-02-12 01:24:39 +01:00
<p>AAAA (IPv6) records:</p>
<ul>
2023-02-12 17:35:32 +01:00
{% for address in r.aaaa%}
2023-02-12 01:24:39 +01:00
<li><code>{{address}}</code></li>
{% endfor %}
</ul>
{% endif %}
2023-02-12 17:35:32 +01:00
{% if r.mx %}
2023-02-12 01:24:39 +01:00
<p>MX (Mail Exchange) records:</p>
<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>
{% endif %}
</body>
</html>