Made dns more useful

This commit is contained in:
Slatian
2023-02-24 20:17:25 +01:00
parent b900ec3b1c
commit 42fd9c0bca
4 changed files with 254 additions and 96 deletions

View File

@ -26,8 +26,9 @@
<nav>
<a href="{{ extra.base_url }}" class="sitename">{{extra.site_name|default(value="echoip")}}</a>
<form class="search" method="GET" action="{{ extra.base_url }}">
<input type="text" name="query" autocomplete="on" maxlength="260"
<input type="search" name="query" autocomplete="on" maxlength="260"
title="Search for an IP-Adress, Domain-Name, or ASN."
placeholder="1.2.3.4, 2001::1:2:3:4, example.org, AS1234"
value="{% if view == "dig" %}{{ data.query }}{% elif view == "ip" %}{{ data.result.address }}{% elif view == "asn"%}AS{{ data.asn }}{% endif %}"/>
<input type="submit" value="Query"/>
</form>
@ -39,5 +40,10 @@
<p>If you see this the templating is broken. Greetings from the base template.</p>
{% endblock %}
</main>
<footer>
<p>You can find the <a href="https://codeberg.org/slatian/service.echoip-slatecave">echoip-slatecave sourcecode on Codeberg</a>. If you found a bug or have an idea, feature, etc. please get in touch (I also accept E-Mails!).</p>
<!-- If you made your own template, link to it here -->
<p>This service works in its current form because nobody is abusing it, please keep that in mind. If you want to do frequent automated requests please host your own instace. Thank you for being awesome!</p>
</footer>
</body>
</html>