Concepts / IPv6

IPv6

NAT64 and DNS64

Also called NAT64, DNS64, 64:ff9b::/96, IPv6-only, TAYGA, stateful NAT64, 464XLAT

How an IPv6-only device reaches an IPv4-only server: DNS64 makes up the address, NAT64 translates the packets.

An IPv6-only network still has to reach IPv4-only servers. DNS64 answers an AAAA query for a name that has only an A record with an address it makes up: the IPv4 address in the last 32 bits of a NAT64 prefix, often the well-known 64:ff9b::/96 (10.0.2.11 becomes 64:ff9b::a00:20b). That prefix is routed to a NAT64 translator, which rewrites each packet's IPv6 header as IPv4 and the answers back. Stateful NAT64 keeps a table of flows and puts many IPv6 clients behind one IPv4 address, like NAT for IPv4. The made-up records do not pass DNSSEC validation, and programs that use IPv4 literals need 464XLAT on the client.

How the scanner reaches an IPv4 site
How the scanner reaches an IPv4 site

DNS64 writes the IPv4 address into the last 32 bits of 64:ff9b::/96; NAT64 reads them back out and sends the packet on as IPv4. From the IPv6 dual stack: run both and see which one wins lab.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab