diff --git a/README.md b/README.md index 852c41c..949afd4 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,12 @@ For a public service you should use a reverse proxy like Caddy, apache2 or nginx `echoip-slatecave` has some simle ratelimiting built in (see the `[ratelimit]` section in the configuration file) this should help you with too frequest automated requests causung high load. The default configuration is pretty liberal so that the average human probably won't notice the rate limit, but a misbehavingig bot will be limited to one request every 3 seconds after 15 requests. +## TODO + +* [ ] Investigate why search isn't working for global TLDs +* [ ] Add a way to configure just the dns server addresses and derive the port from the protocol. +* [ ] Add an about page for the system resolver + ## License Copyright (c) 2023 Slatian diff --git a/templates/404.html b/templates/404.html index 871583d..c8f95a3 100644 --- a/templates/404.html +++ b/templates/404.html @@ -8,6 +8,7 @@
/ip/
or /dig/
endpoints./ua
endpoint wich just displays your user agent.You can use this DNS server by typing via {{c.aliases | first }}
{% if c.aliases | length > 1 %}(or any other alias){% endif %} in the searchfield.
{{ ip }}
+{% macro ip(extra, ip, text="") %}
+{{ text | default(value=ip) }}
{% endmacro dig %}
{% macro breadcrumb_domain(extra, name) %}
diff --git a/templates/index.html b/templates/index.html
index 02c9821..b492c18 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -33,5 +33,7 @@
If you share this site and the Link gets a preview. The IP-Address after the dash is the one of the machine that generated that preview.
+This service exports a list of dns resolvers it supports, with configuration.
+Every query that can output html can also output json or plain text using the ?format=json
or ?format=text
url parameters?