Unix Support

For naming hosts, IPv6 uses the same familiar DNS that's used for IPv4, but with some new RR types. For added fun, there are two ways of doing everything, one simple one (defined by RFC 1886) and one complicated one (defined by RFC 2874). At present, most implementations are following RFC 1886, so there's not much need to worry about the rest and I fully intend to ignore them.

5.1. Forward lookups

Forward lookups for IPv6 use a new RR type called AAAA. This works just like an A record, but holds an IPv6 address rather than an IPv4 address.

wraith.csi.ipv6.cam.ac.uk. 86400 IN AAAA 2001:630:200:8100:2c0:4fff:fe68:12cb

5.2. Reverse lookups

Like forward lookups, reverse lookups are very similar to those in IPv4. The IPv6 address (in the full hex form) is reversed, chopped up into digits, and prepended to either ip6.int or ip6.arpa. ip6.int was used in the early days of IPv6, and while it's now being replaced by ip6.arpa the old name lingers on. Just as in IPv4, the constructed name is used to look up a PTR record, which points to the full name of the host.

b.c.2.1.8.6.e.f.f.f.f.4.0.c.2.0.0.0.1.8.0.0.2.0.0.3.6.0.1.0.0.2.ip6.arpa. 86400IN PTR wraith.csi.ipv6.cam.ac.uk.


Prev Home Next
Stateless autoconfiguration (RFC 2462)   Higher-level protocols

The title of this document is: IPv6 and the DNS (RFC 1886)
URL: http://www-uxsup.csx.cam.ac.uk/courses/moved.ipv6_basics/x124.html