use trust-dns for all DNS queries

Previously we were only using trust-dns for resolving SRV records in
server discovery, and then for resolving the hostname from the SRV
record target if one exists. With the previous behavior, admins need to
ensure that both their system resolver and trust-dns are working
correctly in order for outgoing traffic to work reliably. This can be
confusing to debug, because it's not obvious to the admin if or when
each resolver are being used. Now, everything goes through trust-dns and
outgoing federation DNS should fail/succeed more predictably.

I also expect some performance improvement from having an in-process DNS
cache, but haven't taken measurements yet.
This commit is contained in:
Olivia Lee 2024-12-16 01:12:06 -08:00
parent e249aed1cb
commit 6cb7896e17
No known key found for this signature in database
GPG key ID: 54D568A15B9CD1F9
4 changed files with 52 additions and 35 deletions

1
Cargo.lock generated
View file

@ -929,7 +929,6 @@ dependencies = [
"http",
"http-body-util",
"hyper",
"hyper-util",
"image",
"insta",
"jsonwebtoken",