Adding IPv6 to your zones
Adding IPv6-enabled hostnames to your zones is simply a matter of adding AAAA (also known as quad-A) RRs, which we looked at in Chapter 6, DNS Queries in Action, in the Types and uses of common resource records section.
As we observed, A6 records were also defined as another method of specifying IPv6 hosts that have since been deprecated.
Reverse DNS for IPv6
Setting up reverse DNS for IPv6 blocks works in the same fashion as under IPv4. The reverse mappings under IPv6 occur under the special ip6.arpa
namespace (in contrast with IPv4's in-addr.arpa
):
$ host dns4.example.info dns4.example.info has address 194.0.2.19 dns4.example.info has IPv6 address 2001:678:5::13 $ host 2001:678:5::13 3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.0.0.0.8.7.6.0.1.0.0.2.ip6.arpa domain name pointer dns4.example.info
In our example zonefile, we'll specify our $ORIGIN
at the /60
boundary:
$ORIGIN 0.0.0.5.0.0.0.8.7.6.0.1.0.0.2.ip6.arpa. IN NS ns1.example.com. ...