[GH-ISSUE #1174] Cannot resolve multiple record types concurrently #620

Closed
opened 2026-03-15 23:30:12 +03:00 by kerem · 6 comments
Owner

Originally created by @pabloparada on GitHub (Jul 27, 2020).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1174

Describe the bug
Name resolution fails when executing lookup for records of different types.

To Reproduce
Lookup records of type TXT and SRV.

Expected behavior
Multiple calls to resolver functions Resolver::srv_lookup and Resolver::txt_lookup should successfully resolve a name.

System:

  • OS: Manjaro
  • Architecture: x64
  • Version 20.0.1
  • rustc version: 1.45

Version:
Crate: trust-dns-resolver
Version: 0.19.5

Additional context
Downgrading to version 0.18.1 works well.

thread 'resolver::test::test' panicked at 'called `Result::unwrap()` on an `Err` value: ResolveError { kind: NoRecordsFound { query: Query { name: Name { is_fqdn: false, labels: [mongo-shd] }, query_type: SRV, query_class: IN }, valid_until: Some(Instant { tv_sec: 118525, tv_nsec: 559938142 }) }, backtrack: None }', core/src/resolver.rs:74:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Originally created by @pabloparada on GitHub (Jul 27, 2020). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1174 **Describe the bug** Name resolution fails when executing lookup for records of different types. **To Reproduce** Lookup records of type `TXT` and `SRV`. **Expected behavior** Multiple calls to resolver functions `Resolver::srv_lookup` and `Resolver::txt_lookup` should successfully resolve a name. **System:** - OS: Manjaro - Architecture: x64 - Version 20.0.1 - rustc version: 1.45 **Version:** Crate: trust-dns-resolver Version: 0.19.5 **Additional context** Downgrading to version 0.18.1 works well. ``` thread 'resolver::test::test' panicked at 'called `Result::unwrap()` on an `Err` value: ResolveError { kind: NoRecordsFound { query: Query { name: Name { is_fqdn: false, labels: [mongo-shd] }, query_type: SRV, query_class: IN }, valid_until: Some(Instant { tv_sec: 118525, tv_nsec: 559938142 }) }, backtrack: None }', core/src/resolver.rs:74:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```
kerem 2026-03-15 23:30:12 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@bluejekyll commented on GitHub (Jul 30, 2020):

I think this is fixed in main. I want to publish a preview release soon for that.

See #933

<!-- gh-comment-id:666580308 --> @bluejekyll commented on GitHub (Jul 30, 2020): I think this is fixed in `main`. I want to publish a preview release soon for that. See #933
Author
Owner

@pabloparada commented on GitHub (Aug 3, 2020):

Thank you very much!

<!-- gh-comment-id:667837145 --> @pabloparada commented on GitHub (Aug 3, 2020): Thank you very much!
Author
Owner

@bluejekyll commented on GitHub (Aug 18, 2020):

@pabloparada would you be able to verify this in the 0.20.0-alpha.1 release?

<!-- gh-comment-id:675609434 --> @bluejekyll commented on GitHub (Aug 18, 2020): @pabloparada would you be able to verify this in the `0.20.0-alpha.1` release?
Author
Owner

@pabloparada commented on GitHub (Nov 28, 2020):

I can't @bluejekyll, have no access to related source anymore, sorry :(

<!-- gh-comment-id:735038945 --> @pabloparada commented on GitHub (Nov 28, 2020): I can't @bluejekyll, have no access to related source anymore, sorry :(
Author
Owner

@pabloparada commented on GitHub (Nov 28, 2020):

Hey @bluejekyll I've wrote a small test just to check and give you feedback and seems to work perfect! Thank you again!

<!-- gh-comment-id:735040343 --> @pabloparada commented on GitHub (Nov 28, 2020): Hey @bluejekyll I've wrote a small test just to check and give you feedback and seems to work perfect! Thank you again!
Author
Owner

@bluejekyll commented on GitHub (Nov 28, 2020):

Thank you for confirming!

<!-- gh-comment-id:735114254 --> @bluejekyll commented on GitHub (Nov 28, 2020): Thank you for confirming!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#620
No description provided.