[GH-ISSUE #1080] implment a dns response parser by trust-dns? #601

Closed
opened 2026-03-15 23:23:02 +03:00 by kerem · 2 comments
Owner

Originally created by @woodgear on GitHub (Apr 26, 2020).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1080

hi, i'm try to implment a dns protocol parser. for now ,it use libpnet to capture all packet from 53,then i want to parse those packet by dns protocol, so i'm try to find a dns response parser, i think trust-dns should contain a dns response parser in some where,but i could not find where it is. am i have some missunderstand? or could give me some help about where should i dig.

Originally created by @woodgear on GitHub (Apr 26, 2020). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/1080 hi, i'm try to implment a dns protocol parser. for now ,it use libpnet to capture all packet from 53,then i want to parse those packet by dns protocol, so i'm try to find a dns response parser, i think trust-dns should contain a dns response parser in some where,but i could not find where it is. am i have some missunderstand? or could give me some help about where should i dig.
kerem 2026-03-15 23:23:02 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner
<!-- gh-comment-id:619619811 --> @bluejekyll commented on GitHub (Apr 26, 2020): I think this is what you're probably looking for: https://docs.rs/trust-dns-proto/0.19.4/trust_dns_proto/op/message/struct.Message.html Specifically this function: https://docs.rs/trust-dns-proto/0.19.4/trust_dns_proto/serialize/binary/trait.BinDecodable.html#method.from_bytes
Author
Owner

@woodgear commented on GitHub (Apr 28, 2020):

seems great, thanks.

<!-- gh-comment-id:620450431 --> @woodgear commented on GitHub (Apr 28, 2020): seems great, 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#601
No description provided.