DNS64 is a critical IPv6 transition technology that enables IPv6-only networks to seamlessly access IPv4-only services. By synthesizing AAAA (IPv6) DNS records from A (IPv4) records, DNS64 works in tandem with NAT64 translation gateways to bridge the connectivity gap during the lengthy IPv4-to-IPv6 migration period. This technology has become essential infrastructure for modern carrier networks, enterprise IPv6 deployments, and cloud platforms managing IPv4 address exhaustion.
DNS64 is a DNS protocol extension defined in RFC 6147 that automatically synthesizes IPv6 addresses (AAAA records) from IPv4 addresses (A records) when an IPv6-only client needs to communicate with an IPv4-only server. The synthesized IPv6 address embeds the IPv4 address within a special prefix, allowing NAT64 gateways to perform the necessary protocol translation.
In practice, DNS64 functions as a transparent intermediary in the DNS resolution process. When an IPv6-only client queries for a hostname and only an A record exists (no AAAA record), the DNS64 server constructs a synthetic AAAA record by algorithmically combining:
The resulting IPv6 address directs traffic through a NAT64 gateway capable of translating between IPv6 and IPv4 protocols.
DNS64 never operates in isolation—it requires a paired NAT64 gateway to function. Understanding their relationship is crucial:
┌─────────────────────────────────────────────────────────────────┐
│ IPv6-Only Network │
│ │
│ ┌──────────────┐ │
│ │ IPv6-Only │ 1. DNS Query: www.ipv4only.com (AAAA?) │
│ │ Client │────────────────────────────────────────┐ │
│ └──────────────┘ │ │
│ │ ▼ │
│ │ ┌──────────────┐│
│ │ 2. Synthetic AAAA Response: │ DNS64 ││
│ │ 64:ff9b::203.0.113.1 │ Server ││
│ │◄───────────────────────────────────────┤ ││
│ │ └──────────────┘│
│ │ 3. Connect to 64:ff9b::203.0.113.1 │
│ │ (Embedded IPv4: 203.0.113.1) │
│ ▼ │
│ ┌──────────────────────────────────────┐ │
│ │ NAT64 Gateway │ │
│ │ • Extracts IPv4: 203.0.113.1 │ │
│ │ • Translates IPv6 ↔ IPv4 packets │ │
│ │ • Maintains session state │ │
│ └──────────────────────────────────────┘ │
│ │ │
└─────────┼───────────────────────────────────────────────────────┘
│ 4. IPv4 connection to 203.0.113.1
▼
┌──────────────┐
│ IPv4-Only │
│ Server │
│ 203.0.113.1 │
└──────────────┘
The most critical component of DNS64 is the address synthesis prefix. While DNS64 supports custom prefixes, the Well-Known Prefix (WKP) 64:ff9b::/96 defined in RFC 6052 has emerged as the de facto standard.
The WKP uses the first 96 bits for the prefix, leaving the final 32 bits for the IPv4 address:
IPv4 Address: 203.0.113.1
Binary (32-bit): 11001011.00000000.01110001.00000001
WKP (96-bit): 64:ff9b:0000:0000:0000:0000
IPv4 (32-bit): cb00:7101
Synthesized IPv6: 64:ff9b::cb00:7101
or
64:ff9b::203.0.113.1 (mixed notation)
Organizations may deploy Network-Specific Prefixes (NSP) for:
Common NSP formats include:
/32 - Maximum flexibility but requires /32 routing/40 - Balances prefix length with IPv4 embedding space/48 - Aligns with typical IPv6 allocation boundaries/56 - Common in residential IPv6 deploymentsDNS64 can be deployed in three distinct architectural patterns:
DNS64 functionality integrated into the recursive DNS resolver serving end clients:
Advantages:
Use Cases:
Example Implementations:
2001:4860:4860::6464, 2001:4860:4860::64dns64 64:ff9b::/96 { }; directivemodule-config: "dns64 validator iterator"dns64 parameterDNS64 logic embedded in authoritative nameservers:
Advantages:
Disadvantages:
Use Cases:
Combination approach with DNS64 at both recursive and authoritative layers:
Use Cases:
Mobile carriers represent the largest DNS64/NAT64 deployment base:
Drivers:
Implementation Pattern:
Real-World Examples:
DNS64 addresses three critical enterprise scenarios:
Modern enterprises deploying IPv6-only subnets for:
Supported Platforms:
Remote sites connected via IPv6-only WAN links:
Architecture:
IPv6-native IoT devices requiring occasional IPv4 access:
Broadband and fiber ISPs deploy DNS64 for:
Residential Subscribers:
Business Services:
Public DNS64 Services:
Cloud Platform Integration:
End users and applications experience seamless connectivity without manual configuration or awareness of translation mechanisms.
Organizations eliminate the need to assign IPv4 addresses to:
Dual-stack complexity reduction in IPv6-only networks:
DNS64 eliminates the need to:
Measurable savings from:
Supports gradual IPv4 retirement while maintaining backward compatibility.
DNSSEC synthesis can break DNSSEC validation:
Problem: Synthesized AAAA records lack valid DNSSEC signatures
Solutions:
Impact: Enterprise networks with mandatory DNSSEC validation require careful architecture design
Applications with IPv4 assumptions may fail:
Problematic Patterns:
http://203.0.113.1/api)Mitigation:
DNS64/NAT64 introduces latency:
Factors:
Typical Impact: 2-10ms additional latency (acceptable for most applications)
Optimization:
NAT64 gateways maintain per-connection state:
Challenges:
Solutions:
DNS64/NAT64 obscures end-to-end connectivity:
Difficulties:
Tools:
The WKP 64:ff9b::/96 cannot translate:
Solution: Deploy Network-Specific Prefixes (NSP) for private address translation
When evaluating your network's IPv6 capabilities, DNS64 detection is crucial. Tools like test-ipv6.run provide comprehensive connectivity testing that includes:
64:ff9b::/96 rangeScenario A: Native Dual-Stack (No DNS64)
Scenario B: DNS64/NAT64 Active
64:ff9b::/96 rangeScenario C: IPv6-Only Without DNS64
For network administrators, testing with test-ipv6.run helps validate DNS64 deployment and identify configuration issues before production rollout.
Use 64:ff9b::/96 unless you have specific requirements for NSP deployment.
Place DNS64 functionality in recursive resolvers serving end users, not in authoritative servers.
The NAT64 gateway must use the same prefix configured in DNS64.
Track key metrics:
Position DNS64 function after DNSSEC validation in the resolution path.
Inform application development teams about:
Deploy 464XLAT (RFC 6877) alongside DNS64/NAT64 for comprehensive mobile application compatibility.
Validate:
DNS64 has evolved from an experimental transition mechanism to a production-grade technology deployed by major carriers, enterprises, and cloud platforms worldwide. By enabling IPv6-only networks to transparently access the IPv4 internet, DNS64 addresses the practical challenges of IPv4 address exhaustion while supporting the long-term migration to IPv6.
For organizations planning IPv6-only network segments—whether in cellular networks, cloud environments, or enterprise data centers—DNS64 paired with NAT64 provides a proven, scalable solution. While limitations exist, particularly around DNSSEC and application compatibility, the benefits of simplified architecture, cost reduction, and future-proof infrastructure make DNS64 an essential component of modern network design.
As the internet continues its gradual transition to IPv6, DNS64 will remain a critical bridging technology, enabling coexistence between IPv6 innovation and IPv4 legacy systems for years to come.
Further Reading:
Test Your Network: Visit test-ipv6.run to evaluate your IPv6 connectivity and detect DNS64 deployment.