in reply to daniel:// stenberg://

Regarding native HTTPS DNS records for #ECH: Firefox recently added support for those in their code. Maybe that code helps you implement support in curl. In short: on Unix it uses `res_nquery` (glibc) or `res_query` (musl, macos), on Windows `DnsQuery_A` and on Android `android_res_nquery` (available since Android 10).
The relevant code can be found here: https://searchfox.org/mozilla-central/search?q=ResolveHTTPSRecord&path=&case=false®exp=false
#ech