[meta] Allow resolving HTTPS (or arbitrary record types) RR with native DNS (without TRR)
Categories
(Core :: Networking: DNS, task, P3)
Tracking
()
People
(Reporter: valentin, Assigned: kershaw)
References
(Depends on 5 open bugs, Blocks 1 open bug)
Details
(Keywords: meta, Whiteboard: [necko-triaged])
Considering how useful HTTPS records are, and that a lot of users don't have DoH enabled, we want to allow resolving HTTPS records with the native resolver.
Reporter | ||
Comment 1•8 months ago
|
||
Windows
On all platforms, we use getaddrinfo
to resolve A
and AAAA
requests, but on Windows we also use DnsQuery_A
to perform a second DNS resolution in order to get the TTL
of the DNS record.
This same DNS_QueryA method can be used to resolve HTTPS records on windows
Linux
res_nquery
https://man7.org/linux/man-pages/man3/resolver.3.html
OSX
Android
Theoretically we should be able to use the same linux implementation for Android too. However, as a follow-up we may want to look into using the available Android (Java) DNS APIs as we've determined that getaddrinfo sometimes hangs for an unexpected amount of time, so we need to check if that's also the case for this function as well.
Reporter | ||
Updated•6 months ago
|
Another possibility at least on unix is the ldns library.
And on linux when systemd-resolved is used, then the org.freedesktop.resolve1 dbus api could be used.
Comment 3•5 months ago
|
||
With "HTTPS records", I assume you mean RFC 9460 https://www.rfc-editor.org/rfc/rfc9460.html ?
On Linux, it's difficult to depend on certain applications (like systemd or a commandline app) to be installed. "Linux Standard Base" (LSB) might be a helpful starting point.
With "HTTPS records", I assume you mean RFC 9460
Yes.
On Linux, it's difficult to depend on certain applications (like systemd or a commandline app) to be installed
Well, what I was envisioning is that at runtime firefox would detect if the org.freedesktop.resolv1 dbus interface is available, and if it is, use that, and if not fall back to something else. Although, I suppose that would probably add some complexity, and would still need something to fall back to.
Assignee | ||
Updated•3 months ago
|
Reporter | ||
Comment 5•4 days ago
|
||
This feature will be riding the trains in Firefox 127 - see bug 1890999.
Description
•