Live data from Hacker News

HTML over DNS: Serving Blog Content over DNS

jacobkiers.net

11–20 of 77 posts

Re: HTML over DNS: Serving Blog Content over DNS

#11

As someone who has an obsession with base64 encoding (as exemplified by my poorly written shell scripting here: https://miscdotgeek.com/curlytp-every-web-server-is-a-dead-d... ) I love this. It makes me wonder if some CSS and maybe even a highly compressed image or two could be added.

Nice idea. Probably possible, since each resource has an index record, which contains the mime type.

I'll try it sometime soon (though my CSS skills are basically nonexistent...).

Re: HTML over DNS: Serving Blog Content over DNS

#12
post #3

What's the point though? I can think maybe of reduced latency, but then you usually have the DNS already cached locally. And that takes me to a second point, won't you run into problems delivering content updates, given that clients will most likely cache DNS entries?

Probably "because it's there".

Yes, that's the case indeed.

Re: HTML over DNS: Serving Blog Content over DNS

#16
Wondering why I can't query the DNS directly.

  $ dig posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT
  
  ; > DiG 9.8.3-P1 > posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT
  ;; global options: +cmd
  ;; Got answer:
  ;; ->>HEADER

Re: HTML over DNS: Serving Blog Content over DNS

#17
post #16

Wondering why I can't query the DNS directly. $ dig posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT ; > DiG 9.8.3-P1 > posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT ;; global options: +cmd ;; Got answer: ;; ->>HEADER

Apparently uses DoH. I don't think dig(1) talks DoH, you'd have to use curl or kdig.

Re: HTML over DNS: Serving Blog Content over DNS

#18
post #16

Wondering why I can't query the DNS directly. $ dig posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT ; > DiG 9.8.3-P1 > posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT ;; global options: +cmd ;; Got answer: ;; ->>HEADER

That's weird, it should work. I'll investigate when I get home.

Re: HTML over DNS: Serving Blog Content over DNS

#19

Corollary is, spyware can use DNS to exfiltrate data [0]. Or, send out client-side metrics with cleverly drafted DNS requests [1], or use it as a 3p-cookie replacement [2]. [0] https://unit42.paloaltonetworks.com/dns-tunneling-how-dns-ca... [1] https://github.com/Jigsaw-Code/choir (disclosure: I co-develop hard-forks of two other related Jigsaw-Code projects) [2] http://dnscookie.com/

Interesting, I'll read up on that.

Re: HTML over DNS: Serving Blog Content over DNS

#20
post #16

Wondering why I can't query the DNS directly. $ dig posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT ; > DiG 9.8.3-P1 > posts-2021-08-17-serving-blog-content-over-dns-md.hod.experiments.jacobkiers.net TXT ;; global options: +cmd ;; Got answer: ;; ->>HEADER

Apparently uses DoH. I don't think dig(1) talks DoH, you'd have to use curl or kdig.

DNS is DNS. You should be able to talk to the NS with DNS over UDP, TCP, or HTTP(s). The protocol used should not matter. The information received should be always the same.
Post reply on HN