Expand description
QualiaDB Super-Quin (NQuin) DNS and SDN Record Codec.
Maps standard DNS records and Qualia SDN Front-Door records to 48-byte
NQuin statements in QualiaDB’s Q42 universe.
Adheres strictly to QualiaDB Rule 0-A (zero-heap in hot paths) and Rule 0-B (clean modular decomposition under 500 lines).
Constants§
- DID_
Q42_ FLAG - Bit 63 sentinel for did:q42 topological pointer.
- DNS_
CONTEXT_ HASH - Default DNS context URI hash.
- INLINE_
TAG_ INTEGER - Inline type tag for integers in object bits [60..62] (resolver.rs authoritative layout).
- OP_
DNS_ A - Modality opcodes for DNS in predicate bits [0..7] (Rule 0: all new modalities >= 0x10).
- OP_
DNS_ AAAA - OP_
DNS_ CAA - OP_
DNS_ CERT - OP_
DNS_ CNAME - OP_
DNS_ DNSKEY - OP_
DNS_ DS - OP_
DNS_ HTTPS - OP_
DNS_ MX - OP_
DNS_ NS - OP_
DNS_ PTR - OP_
DNS_ QDP_ FRONT_ DOOR - OP_
DNS_ SDN_ PEER - OP_
DNS_ SDN_ ROUTING - OP_
DNS_ SOA - OP_
DNS_ SRV - OP_
DNS_ TLSA - OP_
DNS_ TXT
Functions§
- decode_
a_ record - Decode an
NQuininto an IPv4 address if it represents anArecord. - decode_
aaaa_ record - Decode an
NQuininto an IPv6 address if it represents anAAAArecord. - decode_
cname_ record - Decode a
CNAMErecord(target_hash, ttl, lane)from anNQuin. - decode_
mx_ record - Decode an
MXrecord(preference, exchange_hash, ttl, lane)from anNQuin. - decode_
ns_ record - Decode an
NSrecord(ns_hash, ttl, lane)from anNQuin. - decode_
ptr_ record - Decode a
PTRrecord(target_hash, ttl, lane)from anNQuin. - decode_
soa_ record - Decode a
SOArecord(serial, mname_hash, rname_hash, ttl, lane)from anNQuin. - decode_
srv_ record - Decode an
SRVrecord(priority, weight, port, target_hash, ttl, lane)from anNQuin. - encode_
a_ record - Encode an IPv4
Arecord as anNQuin. - encode_
aaaa_ record - Encode an IPv6
AAAArecord as anNQuin. - encode_
caa_ record - Encode a
CAArecord as anNQuin. - encode_
cname_ record - Encode a
CNAMErecord as anNQuin. - encode_
dnskey_ record - Encode a
DNSKEYrecord as anNQuin. - encode_
ds_ record - Encode a
DSrecord as anNQuin. - encode_
https_ record - Encode an
HTTPS/SVCBrecord as anNQuin. - encode_
mx_ record - Encode an
MXrecord as anNQuin.objectpacks(preference << 48) | (exchange_hash & 0x0000_FFFF_FFFF_FFFF). - encode_
ns_ record - Encode an
NSrecord as anNQuin. - encode_
ptr_ record - Encode a
PTRrecord as anNQuin. - encode_
sdn_ front_ door - Encode a Qualia Socially Defined Network (SDN) Front-Door entry into an
NQuin. - encode_
soa_ record - Encode a
SOArecord as anNQuin. - encode_
srv_ record - Encode an
SRVrecord as anNQuin. - encode_
tlsa_ record - Encode a
TLSArecord as anNQuin. - encode_
txt_ record - Encode a generic DNS TXT or Front-Door entry into an
NQuin. - wire_
record_ to_ quin - Fallback wrapper for raw RDATA when full packet is not provided.
- wire_
record_ view_ to_ quin - Map a wire record view into an
NQuin, resolving compressed domain names when present.