I just published a blog post about getaddrinfo and all the other weird DNS APIs that we use in Firefox to resolve HTTPS records.

valentin.gosu.se/blog/2025/02/…

All this was part of the talk I gave at FOSDEM last weekend.