mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #727] Client SRV lookups fail despite server returning response #281
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#281
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 @bowrocker on GitHub (Apr 5, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/727
Describe the bug
Attempting to use both the trust_dns_resolver and the Sync client to do SRV record lookups. Results shown when doing A record queries, but when doing an SRV query for a known, existing SRV record, nothing is return to the calling code below. Thanks for any and all help!
Code:
dig shows record exists:
tcpdump shows packet response from server while running the code above:
No response from client:
To Reproduce
Code snippet above with google resolvers.
Expected behavior
Expect an SRV record to be returned.
System:
Version:
Crate: client, resolver
Version: resolver: 0.10.3, client: 0.13
Additional context
Add any other context about the problem here.
@bluejekyll commented on GitHub (Apr 5, 2019):
Before we dig into this, I want to make sure we're clear about a couple of things. The
resolverwill do some recursive resolutions to find the records behind an SRV record, or at least it can and should. We'll need to double check that, but I think it will.The
clienton the other hand is a "dumb" client, it will do no recursive queries, and leaves that up to the user of that library to perform any additional processing etc, to find the results.With that out of the way, are you sure your looking up the correct name? The dig output you posted appears to have returned an NXDOMAIN (non-existent domain), for that query:
@bowrocker commented on GitHub (Apr 5, 2019):
My apologies, I had the wrong SRV record as you point out. Once I had a good one, it works as expected.
Thank you for the response and for the detail about the client and resolver differences, that helps a lot.