dns-parser
dns-parser copied to clipboard
The parser of DNS protocol packets in rust
There's a new(?) qtype of 'HTTPS' (code is 65) that causes this great package to give up on parsing the packet. I'm happy to put up a PR to fix...
This library here https://github.com/tailhook/dns-parser/blob/191266705b30feabe9fbf9289b4cb4da0ea2be31/src/name.rs#L75-L77 returns a `LabelIsNotAscii` error when it encounters queries or answers with label or hostnames containing utf8 characters. With "normal" DNS queries, utf8 characters are converted to...
Fixes #64: Add support for HTTPS query type (type 65) Summary: I was getting 'query type 65 is invalid' errors parsing DNS packets on my machine and this fixes it....
When working with mdns I got some responses with zero length TXT records
Not tested Only briefly tested for one application; allocation-intensive. Note sure if it belongs to "dns-parser" project, may probably be as a separate crate. May help employing proptest/QuickCheck way of...
How do I serialize it back? I want the library to be able to round-trip DNS packet from bytes to structured representation and back.
After parsing a packet and looping through the resource records in the answers, I'm trying to access the Rdata as a vector of [u8] bytes. But being new to Rust,...