mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #2108] dns-over-tls with dns-over-rustls broken since 0.24 #887
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#887
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zonyitoo on GitHub (Dec 9, 2023).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2108
Describe the bug
hickory-resolverwithdns-over-rustlsis broken since 0.24.To Reproduce
Dependency:
Test code, borrowed from library's example:
Expected behavior
resolver.lookup_ip("www.example.com")should be able to resolve, but returned error:System:
Version:
Crate: resolver
Version: 0.24.0
Additional context
Detailed TRACE log: TRACE.log
Error doesn't exist if we are using
dns-over-native-tls.Ref: shadowsocks/shadowsocks-rust#1378
@slatian commented on GitHub (Dec 10, 2023):
For me the same happens with all TLS backends on Linux on 0.24.0. Trust 0.23 works just fine.
@cpu commented on GitHub (Dec 10, 2023):
I believe you're hitting the problem described in https://github.com/hickory-dns/hickory-dns/issues/2066:
Try adding the
webpki-rootsfeature to yourhickory-resolverdependency features:@slatian commented on GitHub (Dec 10, 2023):
That fixed it for me, thank you!
Enabling
native-certsworks too.I guess
webpki-rootsbrings its own certificate store whilenative-certsis using whatever the system offers as a certificate store (also being a sysadmin I prefer this one).Was one of these features enabled by default in 0.23?
@bluejekyll commented on GitHub (Dec 11, 2023):
Yes, this had been a default, but it made it complex if folks want to choose to use one or the other. I think the discussion in the other issue talks a bit about a better path forward.