mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-17 14:33:27 +02:00
Added dns functionality
This commit is contained in:
39
templates/dig.html
Normal file
39
templates/dig.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!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>
|
||||
|
Reference in New Issue
Block a user