IPv6 explained: do you – and your website – have IPv6?

What IPv6 is, why your connection may or may not have it, how IPv6 addresses are written, and how to make a domain reachable over IPv6.

The internet was built on IPv4, which has room for about 4.3 billion addresses. That sounded like plenty in 1981; today there are far more connected devices than that. IPv6 is the successor, with so many addresses that running out is not a practical concern. Both versions now run side by side, and whether a given connection uses one or the other depends on your provider, your router and the site you visit.

What an IPv6 address looks like

An IPv4 address is four numbers from 0 to 255: 203.0.113.10. An IPv6 address is 128 bits written as eight groups of four hexadecimal digits:

2001:0db8:0000:0000:0000:ff00:0042:8329

Two shortening rules make them more readable: leading zeros in a group can be dropped, and one run of all-zero groups can be replaced by ::. The address above is therefore usually written 2001:db8::ff00:42:8329. In URLs, IPv6 addresses are put in square brackets: https://[2001:db8::1]/.

A few prefixes are worth recognising: 2000::/3 are normal public (global unicast) addresses, fe80::/10 are link-local addresses that only work on the local network, fc00::/7 are private "unique local" addresses, and 2001:db8::/32 is reserved for documentation and examples.

Does my connection have IPv6?

At the bottom of every webstriker page, the "Your connection" box tests IPv4 and IPv6 separately from your browser. You will see one of three results:

Two other things are normal. Your IPv6 address may change several times a day, because operating systems use temporary "privacy addresses" for outgoing connections. And while many households share one public IPv4 address behind NAT, each device gets its own public IPv6 address – the router's firewall, not NAT, protects it.

Advertisement

Is my website reachable over IPv6?

A domain is reachable over IPv6 when it has an AAAA record pointing to a server that actually accepts connections on that IPv6 address. The webstriker report checks the pieces separately, because they are often configured by different people:

If you host your own server, enabling IPv6 typically means: get an IPv6 address or prefix from your hosting provider, configure it on the server, make sure the web server listens on it (on IIS, check the site bindings; on Apache and nginx, the Listen/listen directives), allow port 80/443 in the IPv6 firewall, and only then add the AAAA record. Publishing an AAAA record for a server that does not answer on IPv6 is worse than having none, because IPv6 users may experience delays.

IPv6 and email

Mail servers that send over IPv6 are held to a stricter standard than over IPv4. Gmail, for example, requires that a sending IPv6 address has a valid reverse DNS (PTR) record that points back to the same address, and that the mail passes SPF or DKIM. If your server has IPv6 but no PTR record for it, mail may be rejected – so either set up reverse DNS for the IPv6 address (see the reverse DNS guide) or make the mail server send over IPv4 only.

Reverse DNS for IPv6

Reverse lookups for IPv6 use the ip6.arpa zone, with every hexadecimal digit (nibble) of the full address written in reverse order and separated by dots. 2001:db8::1 becomes a 32-label name ending in …8.b.d.0.1.0.0.2.ip6.arpa. You never have to type it – enter the address on webstriker and it builds the name for you.

Key takeaways

Try it yourself:
Advertisement

More guides