mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-12-28 04:28:23 +01:00
46 lines
963 B
HTML
46 lines
963 B
HTML
<!DOCTYPE html>
|
|
{% set r = data.result %}
|
|
{% set q = data.query %}
|
|
<html>
|
|
<head>
|
|
<title>Dig: {{ q.name }}</title>
|
|
</head>
|
|
<body>
|
|
<h1>Lookup for: {{ q.name }}</h1>
|
|
{% if r.a %}
|
|
<p><code>A</code> (IPv4) records:</p>
|
|
<ul>
|
|
{% for address in r.a%}
|
|
<li><code><a href="/ip?ip={{address}}">{{address}}</a></code></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No <code>A</code> (IPv4) Records.</p>
|
|
{% endif %}
|
|
|
|
{% if r.aaaa %}
|
|
<p><code>AAAA</code> (IPv6) records:</p>
|
|
<ul>
|
|
{% for address in r.aaaa%}
|
|
<li><code><a href="/ip?ip={{address}}">{{address}}</a></code></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No <code>AAAA</code> (IPv6) Records.</p>
|
|
{% endif %}
|
|
|
|
{% if r.mx %}
|
|
<p><code>MX</code> (Mail Exchange) records:</p>
|
|
<ul>
|
|
{% for mx in r.mx%}
|
|
<li>{{mx.preference}} <code><a href="/dig?name={{mx.exchange}}">{{mx.exchange}}</a></code></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No <code>MX</code> (Mail Exchange) records.</p>
|
|
{% endif %}
|
|
|
|
</body>
|
|
</html>
|
|
|