mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-12-26 19:58:20 +01:00
53 lines
1.5 KiB
HTML
53 lines
1.5 KiB
HTML
{% extends "base.html" %}
|
|
{% import "helpers.html" as helper %}
|
|
|
|
{% block title %}{{ data.config.display_name }}{% endblock %}
|
|
{% block h1 %}DNS Resolver: {{ data.config.display_name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{%- set c = data.config %}
|
|
<section>
|
|
<h2>Connection Configuration</h2>
|
|
<dl>
|
|
<dt>Address{% if c.servers | length > 1 %}es{% endif %}</dt>
|
|
{% if c.servers | length > 0 %}
|
|
{%- for a in c.servers %}
|
|
{% if a is matching("^\[") %}
|
|
{% set ip = a | split(pat="]") | first | trim_start_matches(pat="[") %}
|
|
{% else %}
|
|
{% set ip = a | split(pat=":") | first %}
|
|
{% endif %}
|
|
<dd>{{ helper::ip(extra=extra, ip=ip, text=a) }}</dd>
|
|
{%- endfor %}
|
|
{%- else %}
|
|
<dd>None Configured</dd>
|
|
{%- endif %}
|
|
|
|
<dt>Protocol</dt>
|
|
<dd>{{ c.protocol }}</dd>
|
|
|
|
{%- if c.tls_dns_name %}
|
|
<dt>DNS Name</dt>
|
|
<dd>{{ helper::dig(extra=extra, name=c.tls_dns_name) }}</dd>
|
|
{%- endif %}
|
|
|
|
</dl>
|
|
{%- if c.info_url %}
|
|
<p class="button-paragraph"><a href="{{c.info_url}}">More about the {{c.display_name}} DNS Server <small>(external link)</small></a></p>
|
|
{%- endif %}
|
|
</section>
|
|
|
|
{%- if c.aliases | length > 0 %}
|
|
<section>
|
|
<h2>Aliases</h2>
|
|
<ul>
|
|
{%- for a in c.aliases %}
|
|
<li>{{a}}</li>
|
|
{%- endfor %}
|
|
</ul>
|
|
<p class="box hint">You can use this DNS server by typing <code>via {{c.aliases | first }}</code> {% if c.aliases | length > 1 %}(or any other alias){% endif %} in the searchfield.</p>
|
|
</section>
|
|
<p><a href="{{extra.base_url}}/dns_resolver">Back to DNS Resolver list</a></p>
|
|
{% endif %}
|
|
{% endblock %}
|