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§
- Correlated
Response - A structurally correlated response.
- Dnskey
- DNSKEY RDATA.
- Ds
- DS RDATA.
- Edns
Option - 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.
- Parse
Limits - Parser and allocation limits.
- Query
- A validated single-question standard query.
- Question
- One DNS question.
- Resource
Record - 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.
- Record
Type - 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.