mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-01-28 02:45:05 +01:00
69 lines
2.0 KiB
HTML
69 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% import "helpers.html" as helper %}
|
|
|
|
{% block title %}dig {{ data.query }}{% endblock %}
|
|
{% block og_title %}dig {{ data.query }}{% endblock %}
|
|
{% block h1 %}dig <code>{{ data.query }}</code>{% endblock %}
|
|
|
|
{% block og_path %}/dig/{{ data.query | urlencode_strict }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if data.result.idn %}
|
|
{% set idn = data.result.idn %}
|
|
<section>
|
|
<h2>Internationalized Domain Names</h2>
|
|
<p>Because of some limitations the DNS has, Unicode caracters need a special encoding.</p>
|
|
{% if idn.original_was == "unicode" %}
|
|
<p>Your Unicode query has been encoded as the <i>IDN</i> <code>{{ idn.idn }}</code> to generate the results below.</p>
|
|
{% else %}
|
|
<p>Your <i>IDN</i> would decode to <code>{{ idn.unicode }}</code>.</p>
|
|
{% endif %}
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% set r = data.result.records %}
|
|
<section>
|
|
<h2>DNS Records</h2>
|
|
{% if r.a %}
|
|
<p id="a"><code>A</code> (IPv4) records:</p>
|
|
<ul class="link-list">
|
|
{% for address in r.a%}
|
|
<li>{{ helper::ip(extra=extra, ip=address) }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No <code>A</code> (IPv4) Records.</p>
|
|
{% endif %}
|
|
|
|
{% if r.aaaa %}
|
|
<p id="aaaa"><code>AAAA</code> (IPv6) records:</p>
|
|
<ul class="link-list">
|
|
{% for address in r.aaaa%}
|
|
<li>{{ helper::ip(extra=extra, ip=address) }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No <code>AAAA</code> (IPv6) Records.</p>
|
|
{% endif %}
|
|
|
|
{% if not data.result.partial_lookup %}
|
|
|
|
{% if r.mx %}
|
|
<p id="mx"><code>MX</code> (Mail Exchange) records:</p>
|
|
<ul class="link-list">
|
|
{% for mx in r.mx%}
|
|
<li>{{ helper::dig(extra=extra, name=mx.exchange, fqdn=true, prefix=mx.preference) }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No <code>MX</code> (Mail Exchange) records.</p>
|
|
{% endif %}
|
|
|
|
{% else %}{# if data.partial_lookup #}
|
|
<p>To save resources the above is only a partial lookup.</p>
|
|
<p class="button-paragraph"><a href="{{ helper::dig_link(extra=extra, name=data.query) }}">Extended DNS Lookup for <code>{{ data.query }}</code>.</a></p>
|
|
{% endif %}
|
|
</section>
|
|
|
|
{% endblock %}
|