[GH-ISSUE #2367] where is the type A in crate hickory-resolver ? #975

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

Originally created by @Cergoo on GitHub (Aug 21, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2367

Hi,
I use

hickory-resolver = { version = "0.25.0-alpha.2", features = ["dns-over-https-rustls"] }
hickory-proto = { version = "*" }  // -- only for type A declaration

and I got the error

let ip :hickory_proto::rr::rdata::a::A; 
   |             ------------------------------ expected due to this type 
...
79 |         ip = response.iter().next().ok_or("[error] not resolve dns to ip")?;
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `hickory_proto::rr::rdata::A`, found `A`
   |
   = note: `A` and `hickory_proto::rr::rdata::A` have similar names, but are actually distinct types
note: `A` is defined in crate `hickory_proto`
  --> /home/prof/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hickory-proto-0.25.0-alpha.2/src/rr/rdata/a.rs:49:1

where is the type A in crate hickory-resolver ?
I net set type declaration.

Originally created by @Cergoo on GitHub (Aug 21, 2024). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2367 Hi, I use ```TOML hickory-resolver = { version = "0.25.0-alpha.2", features = ["dns-over-https-rustls"] } hickory-proto = { version = "*" } // -- only for type A declaration ``` and I got the error ```rust let ip :hickory_proto::rr::rdata::a::A; | ------------------------------ expected due to this type ... 79 | ip = response.iter().next().ok_or("[error] not resolve dns to ip")?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `hickory_proto::rr::rdata::A`, found `A` | = note: `A` and `hickory_proto::rr::rdata::A` have similar names, but are actually distinct types note: `A` is defined in crate `hickory_proto` --> /home/prof/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hickory-proto-0.25.0-alpha.2/src/rr/rdata/a.rs:49:1 ``` where is the type `A` in crate hickory-resolver ? I net set type declaration.
kerem closed this issue 2026-03-16 01:08:54 +03:00
Author
Owner

@Cergoo commented on GitHub (Aug 21, 2024):

but yesterday it still worked

<!-- gh-comment-id:2301287636 --> @Cergoo commented on GitHub (Aug 21, 2024): but yesterday it still worked
Author
Owner

@Cergoo commented on GitHub (Aug 21, 2024):

I set hickory-proto = { version = "0.25.0-alpha.2" } and it`s ok
sorry

<!-- gh-comment-id:2301372292 --> @Cergoo commented on GitHub (Aug 21, 2024): I set `hickory-proto = { version = "0.25.0-alpha.2" }` and it`s ok sorry
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#975
No description provided.