Introduction
A migration plan needs a path for each client and service combination. Giving a client an IPv6 address solves one part. Name resolution, routing and the server's supported address families determine how the application can connect.
Operate both families with dual stack
A dual-stack node runs IPv4 and IPv6. It can use IPv4 to reach an IPv4 peer and IPv6 to reach an IPv6 peer. Each family needs its own addressing, routes and service configuration. Operational policy, monitoring and access controls should cover both.
A name can publish A and AAAA records. Client address selection and connection behavior influence which family carries an actual session. A successful request alone does not identify the path the client used.
Carry one protocol inside another
A tunnel preserves an inner IP packet and adds an outer header to carry it across a segment that speaks a different protocol. The remote tunnel endpoint removes the outer header. Both endpoints must agree on the tunnel and its routing. Include the outer header in the packet budget.
Translate for an IPv6-only client
A common DNS64 and stateful NAT64 deployment serves IPv6-only clients that need IPv4-only services. DNS64 can synthesize an AAAA answer from an A record using a translation prefix. The client sends IPv6 traffic to that synthesized destination. The NAT64 gateway translates eligible traffic to IPv4 and uses its mapping state for the return flow.
DNS64 and NAT64 have separate jobs. An IPv4 literal can bypass DNS64 entirely. Applications that embed addresses in data, or validate DNSSEC themselves, can require additional design. Native AAAA answers normally give clients a direct IPv6 destination where routing permits.
Diagram
- IPv6-only client
- Synthesized IPv6 destination
- Stateful NAT64 gateway
- IPv4-only service
Worked examples
Read the embedded address in a /96 translation prefix
- For a documentation example, use the network-specific prefix 2001:db8:64::/96 and the sample IPv4 address 192.0.2.33.
- Convert the four IPv4 octets to hexadecimal bytes c0, 00, 02 and 21. Filling the final 32 bits gives 2001:db8:64::c000:221.
- A configured DNS64 resolver can supply that synthesized address. The site's route for the translation prefix leads to the NAT64 gateway, which extracts 192.0.2.33 and translates the flow. These documentation ranges illustrate the arithmetic.
IPv6 / IPv4 Comparison: Compare two point-to-point prefixes
- An IPv4 interface uses 192.0.2.5/31. One bit varies, so the two values are 192.0.2.4 and 192.0.2.5. Both are endpoint positions on an RFC 3021 link.
- An IPv6 inter-router link uses 2001:db8::5/127. Again one bit varies, giving 2001:db8::4 and 2001:db8::5.
- Both counts are two. Neither example needs a directed broadcast. A change to /30 in the IPv4 field doubles its count while the IPv6 count stays two.
Reference table
| Mechanism | Host requirement | What changes on the path |
|---|---|---|
| Dual stack | Both protocol stacks | Application chooses an available family |
| Tunnel | Compatible endpoints | Outer header added and removed |
| DNS64 | Client requests AAAA | Resolver can synthesize a destination |
| Stateful NAT64 | IPv6 path to translator | Gateway translates packets and tracks flows |
Configuration example
- Maintain a matrix of client family, published A/AAAA data, service listeners and upstream reachability.
- For a translation domain, align the resolver's synthesis prefix, routing to the translator and translator configuration. Document DNSSEC handling and applications that depend on IPv4 literals.
Common mistakes
- Publishing an AAAA record before validating the corresponding IPv6 service configuration.
- Treating an IPv4-mapped socket notation such as ::ffff:192.0.2.33 as an automatically routable NAT64 prefix.
Frequently asked questions
Does an IPv6-only client always need NAT64?
It can communicate directly with reachable IPv6 services. Translation supplies a path to eligible IPv4-only services.
Can I append the IPv4 bytes the same way for every translation prefix?
The example uses a /96 prefix. Other supported prefix lengths have specific layouts defined by RFC 6052, including a reserved octet. Apply the layout for the deployed prefix.
Does enabling IPv6 automatically disable IPv4?
No. Many systems use dual stack and can communicate over both families. Application and address-selection behavior determines which path is attempted.
What is DNS64 used for?
DNS64 can synthesize IPv6 records from IPv4-only answers for use with a NAT64 gateway. It supports some IPv6-only clients but is not equivalent to native IPv6 service.
Does NAT64 make every IPv4-only application work?
No. Applications that embed IPv4 literals or depend on unsupported protocols may not work correctly through translation. Test the actual application and its name-resolution behavior.
Why test IPv4 and IPv6 separately?
A hostname can publish both address families while routing, firewall, or service configuration works for only one. Separate checks reveal family-specific failures hidden by address selection.
Why might a host have both temporary and stable IPv6 addresses?
An operating system can use temporary privacy addresses for outgoing connections while retaining stable addresses for other purposes. Address selection policy determines which source is chosen.
Does an AAAA record mean IPv6 connectivity works?
No. It only publishes an IPv6 address. Routing, firewall, neighbor discovery, and service configuration must also support the path.
Is dual stack always the simplest transition plan?
It provides both protocol families but also requires maintaining two address, routing, and security configurations. The right design depends on dependencies and operational capacity.
Can a DNS lookup reveal an IPv6 path problem?
It can show that a name publishes AAAA data, but a connection test over IPv6 is needed to evaluate reachability and service behavior.
What is SLAAC?
Stateless Address Autoconfiguration lets an IPv6 host form an address using information in Router Advertisements, without requiring a DHCPv6 server to assign every address.
Can DHCPv6 and SLAAC be used together?
Yes. Router Advertisements signal how hosts should configure addresses and other information, and DHCPv6 can provide additional configuration according to network policy.
Why should an IPv6-only network test DNS64 behavior?
An IPv6-only client may need synthesized AAAA answers to reach IPv4-only services through NAT64. Names with native IPv6 records follow a different path.
Does a link-local IPv6 address mean the host has internet access?
No. It supports local-link communication. A routed path generally also requires suitable global or other routable addressing, a default router, and policy.
Can disabling IPv4 fix an IPv6 service problem?
It may hide fallback behavior but does not repair IPv6 routing, DNS, or firewall configuration. Diagnose the family-specific path before changing a system-wide protocol setting.

