Expand description
Zero-allocation RFC 1035 / RFC 3597 binary DNS wire parser & encoder.
Follows QualiaDB 0-A zero-heap hot path rules: operates over caller-supplied
buffers without allocating Vec or String.
Structs§
- DnsHeader
- Fixed 12-byte DNS message header (RFC 1035 §4.1.1).
- DnsQuestion
- Zero-heap question view over a raw DNS packet.
- DnsRecord
View - A parsed Resource Record view pointing directly into packet bytes.
Enums§
- DnsType
- Standard RR Type identifiers (RFC 1035, RFC 3597, RFC 4034).
Constants§
- CLASS_
IN - Standard DNS class (IN = Internet).
- FLAG_
AA_ AUTHORITATIVE - FLAG_
AD_ AUTHENTICATED_ DATA - FLAG_
CD_ CHECKING_ DISABLED - FLAG_
QR_ RESPONSE - DNS header flags bitmasks (RFC 1035 §4.1.1).
- FLAG_
RA_ RECURSION_ AVAILABLE - FLAG_
RD_ RECURSION_ DESIRED - FLAG_
TC_ TRUNCATED - OPCODE_
MASK - RCODE_
MASK
Functions§
- build_
query_ packet - Write a single standard DNS query packet into
out. - decode_
domain_ name - Decode a domain name from wire format into a plain dotted string inside
out_buf. - encode_
domain_ name - Encode a dotted ASCII domain name into DNS wire label format:
[len, label..., 0]. - parse_
records - Parser for resource records out of a binary DNS packet.