html-over-dns/content/posts/2021-08-17-serving-blog-content-over-dns.md
Jacob Kiers 2a5b04d8d5 Add a quick-and-dirty post about what happens
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2021-08-17 01:24:03 +02:00

612 B

+++ title = Serving blog content over DNS date = 2021-08-15 author = Jacob Kiers +++

You might not be able to see it immediately, but the content of this page is verved over DNS.

This works because of the new DNS-over-HTTP support, which, at least at Cloudflare, also has an API.

That API is used to load the contents of this page, essentially like this:

fetch("https://cloudflare-dns.com/dns-query?ct=application/dns-json&type=TXT&name=post.hod.experiments.jacobkiers.net");

Please see the source code for the details of how it works.