2023-02-23 21:24:35 +01:00
{% extends "base.html" %}
{% import "helpers.html" as helper %}
2023-02-24 00:01:51 +01:00
{% import "links.html" as links %}
2023-02-23 21:24:35 +01:00
{% block title %}dig {{ data.query }}{% endblock %}
{% block og_title %}dig {{ data.query }}{% endblock %}
2023-02-24 00:01:51 +01:00
{% block h1 %}dig < code > {{ helper::breadcrumb_domain(extra=extra, name=data.query) }}< / code > {% endblock %}
2023-02-23 21:24:35 +01:00
{% 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 >
2023-02-12 17:35:32 +01:00
{% if r.a %}
2023-02-23 21:24:35 +01:00
< p id = "a" > < code > A< / code > (IPv4) records:< / p >
< ul class = "link-list" >
2023-02-12 17:35:32 +01:00
{% for address in r.a%}
2023-02-23 21:24:35 +01:00
< li > {{ helper::ip(extra=extra, ip=address) }}< / li >
2023-02-12 01:24:39 +01:00
{% endfor %}
< / ul >
2023-02-18 22:16:09 +01:00
{% else %}
< p > No < code > A< / code > (IPv4) Records.< / p >
2023-02-12 01:24:39 +01:00
{% endif %}
2023-02-12 17:35:32 +01:00
{% if r.aaaa %}
2023-02-23 21:24:35 +01:00
< p id = "aaaa" > < code > AAAA< / code > (IPv6) records:< / p >
< ul class = "link-list" >
2023-02-12 17:35:32 +01:00
{% for address in r.aaaa%}
2023-02-23 21:24:35 +01:00
< li > {{ helper::ip(extra=extra, ip=address) }}< / li >
2023-02-12 01:24:39 +01:00
{% endfor %}
< / ul >
2023-02-18 22:16:09 +01:00
{% else %}
< p > No < code > AAAA< / code > (IPv6) Records.< / p >
2023-02-12 01:24:39 +01:00
{% endif %}
2023-02-23 21:24:35 +01:00
{% if not data.result.partial_lookup %}
2023-02-12 17:35:32 +01:00
{% if r.mx %}
2023-02-23 21:24:35 +01:00
< p id = "mx" > < code > MX< / code > (Mail Exchange) records:< / p >
< ul class = "link-list" >
2023-02-12 17:35:32 +01:00
{% for mx in r.mx%}
2023-02-23 21:24:35 +01:00
< li > {{ helper::dig(extra=extra, name=mx.exchange, fqdn=true, prefix=mx.preference) }}< / li >
2023-02-12 01:24:39 +01:00
{% endfor %}
< / ul >
2023-02-18 22:16:09 +01:00
{% else %}
< p > No < code > MX< / code > (Mail Exchange) records.< / p >
2023-02-12 01:24:39 +01:00
{% endif %}
2023-02-23 21:24:35 +01:00
{% 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 >
2023-02-12 01:24:39 +01:00
2023-02-24 00:01:51 +01:00
< section >
< h2 > Other Services< / h2 >
{{ links::domain_name_links(name=idn.idn|default(value=data.query))}}
< / section >
2023-02-23 21:24:35 +01:00
{% endblock %}