Skip to main content

Crate hns_dns_wire

Crate hns_dns_wire 

Source
Expand description

Strict, runtime-independent DNS wire parsing for HNS DNSSEC and DANE.

The parser bounds the packet, section counts, RDATA, labels, and compression jumps before allocation. It rejects forward, out-of-message, and cyclic compression pointers. DNS AD is exposed only as an untrusted wire claim.

Structs§

CorrelatedResponse
A structurally correlated response.
Dnskey
DNSKEY RDATA.
Ds
DS RDATA.
EdnsOption
One EDNS option.
Flags
DNS header flags.
Header
Parsed DNS header.
Message
Complete parsed DNS message.
Mx
MX RDATA.
Name
A canonical, absolute DNS name.
Nsec
NSEC RDATA.
Nsec3
NSEC3 RDATA.
ParseLimits
Parser and allocation limits.
Query
A validated single-question standard query.
Question
One DNS question.
ResourceRecord
One DNS resource record.
Rrsig
RRSIG RDATA.
Soa
SOA RDATA.
Srv
SRV RDATA.
Tlsa
TLSA RDATA.

Enums§

Error
DNS wire parse or validation failure.
Rdata
Parsed or preserved resource-record data.
RecordType
DNS resource-record type.

Constants§

CLASS_IN
DNS class IN.
DEFAULT_UDP_PAYLOAD
Traditional safe DNS-over-UDP payload.
EDNS_DO
DNSSEC OK bit in the EDNS OPT TTL field.
MAX_LABEL_LEN
Maximum RFC 1035 label length.
MAX_WIRE_NAME_LEN
Maximum complete DNS wire name length, including length octets and root.