Modern DNS & IPv6 Architecture: DoH, Anycast, Reverse ip6.arpa & DNSSEC Runbook
A comprehensive engineering runbook for network architects, DevOps engineers, and cloud infrastructure teams. Learn how to architect modern DNS with DNS-over-HTTPS (RFC 8484), deploy dual-stack IPv6 addressing, construct reverse ip6.arpa PTR zones, and secure domain resolution with DNSSEC and Anycast BGP routing.
1. DNS Record Architecture & Dual-Stack Dual-Record Topologies
dig A AAAA example.com +noall +answerQueries both IPv4 (A) and IPv6 (AAAA) records in a single CLI transaction.
curl -6 -o /dev/null -s -w "IPv6: %{time_connect}s\n" https://example.comForces IPv6 connection timing to measure edge transit latency.
| Record Type | RFC Standard | Purpose in Modern Architecture | Example Target Value | Copy |
|---|---|---|---|---|
| A Record | RFC 1035 | IPv4 Address Resolution | Maps FQDN hostname to 32-bit IPv4 address (e.g. 93.184.216.34) | |
| AAAA Record | RFC 3596 | IPv6 Address Resolution | Maps FQDN hostname to 128-bit IPv6 address (e.g. 2606:2800:220:1:248:1893:25c8:1946) | |
| CNAME Record | RFC 1035 | Canonical Alias | Aliases canonical hostname to another target FQDN (e.g. cdn.service.example.net.) | |
| PTR Record | RFC 1035 / 3596 | Reverse Pointer Lookup | Resolves IP address to validated domain via in-addr.arpa or ip6.arpa |
2. DNS-over-HTTPS (DoH): Encrypted Wire Format & RFC 8484
curl -H "accept: application/dns-json" "https://cloudflare-dns.com/dns-query?name=example.com&type=AAAA"Retrieves parsed JSON DNS response over secure HTTPS.
curl -H "accept: application/dns-json" "https://dns.google/resolve?name=example.com&type=A"Executes DoH query against Google Anycast resolvers.
| Protocol Tier | Transport / Port | Encryption & Privacy Mechanism | Primary Threat Mitigated | Copy |
|---|---|---|---|---|
| Standard DNS | UDP / TCP port 53 | Cleartext (Unencrypted) | None (Vulnerable to spoofing, interception, on-path tampering & sniffing) | |
| DNS-over-HTTPS (DoH) | HTTPS port 443 (HTTP/2, HTTP/3) | TLS 1.3 encrypted application/dns-message | Eavesdropping, ISP surveillance, DNS poisoning & regional censorship | |
| DNS-over-TLS (DoT) | TCP port 853 | TLS over dedicated port | Eavesdropping and query modification on dedicated enterprise links | |
| DNS-over-QUIC (DoQ) | UDP port 853 (QUIC) | Native TLS 1.3 with 0-RTT handshakes | Head-of-line blocking, connection migration latency on mobile networks |
3. IPv6 Addressing Scopes, EUI-64 & RFC 5952 Normalization
ip -6 addr showLists all configured IPv6 addresses, scopes, and valid lifetimes.
python3 -c "import ipaddress; print(ipaddress.IPv6Address('2001:db8::1').reverse_pointer)"Computes the dot-separated nibble format for reverse DNS zones.
| IPv6 Scope Name | Prefix / Length | Typical Use Case & Context | Routing Boundary | Copy |
|---|---|---|---|---|
| Global Unicast (GUA) | 2000::/3 | Public Internet Host Addressing | Globally routable internet boundary (e.g. 2001:db8::/32 allocations) | |
| Link-Local Unicast | fe80::/10 | Neighbor Discovery & Router Advertisements | Single physical layer-2 broadcast domain / local ethernet segment | |
| Unique Local (ULA) | fc00::/7 (typically fd00::/8) | Private Intranet & VPC Peering | Private organization enterprise boundary; non-routable on public internet | |
| Multicast | ff00::/8 | One-to-Many Group Transmission | Configurable link/site scope (e.g. ff02::1 all nodes, ff02::2 all routers) |
4. Production CLI Network Diagnostic Runbook
dig +trace +nodnssec example.comPerforms iterative lookup starting from root hint servers.
drill -D -T -k /etc/trusted-key.key example.comValidates cryptographic trust chain from root trust anchor to target zone.
dig -x 2606:2800:220:1:248:1893:25c8:1946 +shortResolves reverse pointer hostname from IPv6 address.
| Diagnostic Tool | Command Example | Output Inspected & Validated | Practical Use Case | Copy |
|---|---|---|---|---|
| dig (BIND-utils) | dig +short NS example.com | Authoritative Nameservers List | Verifying delegation configuration and recursive query resolution | |
| kdig (Knot DNS) | kdig -d @1.1.1.1 +tls-ca example.com | TLS Handshake & Wire Format | Testing encrypted DNS-over-TLS and DNS-over-HTTPS endpoints | |
| drill (ldns) | drill -S example.com | DNSSEC Signature Chain Status | Debugging broken RRSIG, DS records, and cryptographic trust anchors | |
| ip (iproute2) | ip -6 route show default | IPv6 Default Gateway & Metric | Diagnosing dual-stack connectivity blackholes and neighbor reachability |
5. DNSSEC Cryptographic Key Management & Anycast Routing
dig +dnssec example.com | grep "flags:"Inspects response flags for "ad" confirming cryptographic validation.
dig DNSKEY example.com +multilineRetrieves public ZSK (flag 256) and KSK (flag 257) public keys.
| DNSSEC Record Type | Cryptographic Role | Zone Placement | Verification Mechanism | Copy |
|---|---|---|---|---|
| DNSKEY | Hosts public key of ZSK or KSK | Child Authoritative Zone | Used by validating recursive resolvers to verify RRSIG signatures | |
| RRSIG | Digital signature of RRset | Child Authoritative Zone | Computed using private ZSK with SHA-256 or ECDSA (Algorithm 13) | |
| DS (Delegation Signer) | SHA-256 hash of child KSK | Parent TLD Registry Zone | Establishes cryptographic parent-child trust link anchored at root | |
| NSEC3 | Authenticated denial of existence | Child Authoritative Zone | Proves non-existence of queried record without enabling zone walking |
Related Free Online Tools
Put these techniques into practice immediately with our privacy-first browser utilities:
Resolve and inspect DNS records client-side via DNS-over-HTTPS with DNSSEC validation and BIND zone export.
Expand and compress IPv6 addresses to RFC 5952 canonical form, generate reverse DNS ip6.arpa PTR zones, and convert MAC to EUI-64.
Generate standard RFC compliant DNS records and BIND zone files for A, AAAA, CNAME, MX, TXT, and SRV.