Profile picture
Filippo Valsorda @FiloSottile
, 6 tweets, 2 min read Read on Twitter
Can't believe that two versions after introducing support for DNS-over-TLS, unbound still makes a new TLS connection (handshake and everything) *for every DNS request*.
I'm convinced that while DNS-over-TLS makes more sense as a protocol than DNS-over-HTTPS (DNS requests are small and have unique IDs), the DNS software ecosystem is just unprepared to handle DoT, while there's solid software to reuse for DoH.
Today my DNS resolver broke, as it does (is it the chroot? the python bindings? the DNSSEC anchor? the DoT proxy? who knows!), so I decided to take another look at connection reuse support, 6 months later. AFAICT, nope. Nothing.
What I _did_ find is that when linked against OpenSSL 1.0.2 (the Homebrew default), Unbound does not check TLS certificates. There's a note in the docs so I guess it's fine.

> The cert name match code needs OpenSSL 1.1.0 or later to be enabled.

(╯°□°)╯︵ ┻━┻
Everywhere I look in the ecosystem there are C parsers, frustrating UX, suspect OpenSSL bindings, hand-rolled concurrency, bad connection management.

Thing is, Go spoiled me. I want to rebuild it all with miekg/dns, some goroutines, net/http and crypto/tls.
(The DNS-over-HTTPS stub part, that is. I am cursed with DNS opinions and there's no chance I'm reimplementing any of the actual cache, hardening, minimisation, prefetching, DNSSEC, and recursion logic. I blame @OGudm.)
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Filippo Valsorda
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($3.00/month or $30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!