[GH-ISSUE #971] global_resolver example is broken #578

Closed
opened 2026-03-15 23:16:14 +03:00 by kerem · 1 comment
Owner

Originally created by @chunyingw on GitHub (Dec 26, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/971

Describe the bug
I am running the global_resolver example on Linux and Mac, both failed.

To Reproduce
$ cargo run --example global_resolver

Expected behavior
Print the valid socket address for the hosts.

System:
Mac and Linux

Version:
Crate: resolver
Version: 0.18.0 Dec 22, 2019

Additional context
Here is the output:

www.google.com resolved to Err(Custom { kind: AddrNotAvailable, error: "dns resolution error: proto error" })
www.reddit.com resolved to Err(Custom { kind: AddrNotAvailable, error: "dns resolution error: proto error" })
...

It fails here
https://github.com/bluejekyll/trust-dns/blob/master/crates/proto/src/xfer/mod.rs#L240
I see this trace. "unable to enqueue message".
I believe it's broken with the Background with generic spawn.

Originally created by @chunyingw on GitHub (Dec 26, 2019). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/971 **Describe the bug** I am running the global_resolver example on Linux and Mac, both failed. **To Reproduce** $ cargo run --example global_resolver **Expected behavior** Print the valid socket address for the hosts. **System:** Mac and Linux **Version:** Crate: resolver Version: 0.18.0 Dec 22, 2019 **Additional context** Here is the output: ``` www.google.com resolved to Err(Custom { kind: AddrNotAvailable, error: "dns resolution error: proto error" }) www.reddit.com resolved to Err(Custom { kind: AddrNotAvailable, error: "dns resolution error: proto error" }) ... ``` It fails here https://github.com/bluejekyll/trust-dns/blob/master/crates/proto/src/xfer/mod.rs#L240 I see this trace. "unable to enqueue message". I believe it's broken with the [Background with generic spawn](https://github.com/bluejekyll/trust-dns/pull/935).
kerem closed this issue 2026-03-15 23:16:19 +03:00
Author
Owner

@bluejekyll commented on GitHub (Dec 26, 2019):

Hm, I guess the examples aren't being run under testing properly...

<!-- gh-comment-id:569118957 --> @bluejekyll commented on GitHub (Dec 26, 2019): Hm, I guess the examples aren't being run under testing properly...
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#578
No description provided.