echoip-slatecave/templates/dig.html

40 lines
694 B
HTML
Raw Normal View History

2023-02-12 01:24:39 +01:00
<!DOCTYPE html>
<html>
<head>
<title>Dig: {{ dig_query }}</title>
</head>
<body>
<h1>Lookup for: {{ dig_query }}</h1>
{% if dig_result.a %}
<p>A (IPv4) records:</p>
<ul>
{% for address in dig_result.a%}
<li><code>{{address}}</code></li>
{% endfor %}
</ul>
{% endif %}
{% if dig_result.aaaa %}
<p>AAAA (IPv6) records:</p>
<ul>
{% for address in dig_result.aaaa%}
<li><code>{{address}}</code></li>
{% endfor %}
</ul>
{% endif %}
{% if dig_result.mx %}
<p>MX (Mail Exchange) records:</p>
<ul>
{% for mx in dig_result.mx%}
<li>{{mx.preference}} <code><a href="/dig?name={{mx.exchange}}">{{mx.exchange}}</a></code></li>
{% endfor %}
</ul>
{% endif %}
</body>
</html>