mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #1671] NsLookup only gives names, but no addresses #732
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#732
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 @db48x on GitHub (Mar 29, 2022).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1671
Describe the bug
When looking up name servers for a domain, the response includes records for both the names of the nameservers and their addresses, but trust-dns-resolver only makes the names available.
To Reproduce
Expected behavior
I expect
ns.iter()to iterate over theNames from the response, as indicated by the type signature; that part is fine. However, I expected that I could get the additional address records fromns.as_lookup().record_iter(). Instead only NS records are available.System:
Version:
Crate: resolver
Version: 0.22.1
@db48x commented on GitHub (Mar 29, 2022):
This appears to be caused by
handle_noerrorin crates/resolver/src/caching_client.rs. The address records are definitely present in theresponse_message, but they get filtered out because the record type (A or AAAA) does not match the query type (NS). There are special cases here for CNAME records and SRV queries; perhaps there should be one for NS queries too?