[GH-ISSUE #2263] Are SRV/TXT lookup errors retried? #943

Closed
opened 2026-03-16 01:02:27 +03:00 by kerem · 2 comments
Owner

Originally created by @isabelatkinson on GitHub (Jun 27, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2263

Hello! I work on the MongoDB Rust driver, and we are currently investigating whether we should retry SRV/TXT lookup when errors are encountered during client creation. We currently use TokioAsyncResolver to perform these lookups. Are there any errors that may occur during lookup (i.e. in srv_lookup and txt_lookup) that trigger an internal retry? We want to avoid double-retrying for errors that are already handled by the resolver.

Originally created by @isabelatkinson on GitHub (Jun 27, 2024). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2263 Hello! I work on the MongoDB Rust driver, and we are currently investigating whether we should retry SRV/TXT lookup when errors are encountered during client creation. We currently use `TokioAsyncResolver` to perform these lookups. Are there any errors that may occur during lookup (i.e. in [`srv_lookup`](https://docs.rs/hickory-resolver/latest/hickory_resolver/type.TokioAsyncResolver.html#method.srv_lookup) and [`txt_lookup`](https://docs.rs/hickory-resolver/latest/hickory_resolver/type.TokioAsyncResolver.html#method.srv_lookup)) that trigger an internal retry? We want to avoid double-retrying for errors that are already handled by the resolver.
kerem closed this issue 2026-03-16 01:02:33 +03:00
Author
Owner

@djc commented on GitHub (Jun 28, 2024):

Have a look at the RetryDnsHandle and the logic for trying a request against a NameServerPool?

(There's also some logic in the LookupFuture.)

<!-- gh-comment-id:2196895908 --> @djc commented on GitHub (Jun 28, 2024): Have a look at the [`RetryDnsHandle`](https://github.com/hickory-dns/hickory-dns/blob/main/crates/proto/src/xfer/retry_dns_handle.rs#L98) and the [logic](https://github.com/hickory-dns/hickory-dns/blob/main/crates/resolver/src/name_server/name_server_pool.rs#L257) for trying a request against a `NameServerPool`? (There's also some logic in the [`LookupFuture`](https://github.com/hickory-dns/hickory-dns/blob/main/crates/resolver/src/lookup.rs#L315).)
Author
Owner

@isabelatkinson commented on GitHub (Jul 1, 2024):

Thanks!

<!-- gh-comment-id:2201102088 --> @isabelatkinson commented on GitHub (Jul 1, 2024): Thanks!
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#943
No description provided.