mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #2152] Reverse lookup fails when there are multiple PTR records #904
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#904
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 @mladedav on GitHub (Feb 23, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2152
Description
When multiple PTR records are available, the resolver returns
ResolveErrorwith kindNoRecordsFound.Reproduction
I don't know of any public server that has multiple PTR records. However, podman seems to have multiple (when I run it through docker compose with
[aardvark-dns](https://archlinux.org/packages/?name=aardvark-dns)) so that may be a simple way to repro. Or just running hickory-dns as a server.I did not try to repro with hickory itself so I do hope I'm not misdiagnosing the issue.
Expected behavior
The resolution succeeds.
System:
Version:
Crate: resolver
Version: 0.24
Context
I can see in the logs that the DNS server serves a response. It works for me in docker where there is only one response so I assume that is the relevant difference although I may be wrong.
Details
Code:
calling
reverse_lookupproduces the same thing, I tried this directly if there were just an issue with converting the response.Log:
@mladedav commented on GitHub (Feb 27, 2024):
On another look this seems to be an issue with
aardvark-dnsbecause the records point to.instead of the queried domain. Sorry for raising this here.