Crate dns_parser

source ·
Expand description

The network-agnostic DNS parser library

Documentation | Github | Crate

Use Builder to create a new outgoing packet.

Use Packet::parse to parse a packet into a data structure.

Re-exports

pub use rdata::RData;

Modules

Data types and methods for handling the RData field

Structs

Allows to build a DNS packet
Represents parsed header of the packet
The DNS name as stored in the original packet
Parsed DNS packet
A parsed chunk of data in the Query section of the packet
A single DNS record

Enums

The CLASS value according to RFC 1035
Error parsing DNS packet
The OPCODE value according to RFC 1035
The QCLASS value according to RFC 1035
The QTYPE value according to RFC 1035
The RCODE value according to RFC 1035
The TYPE value according to RFC 1035