Bind 9 Administrator Reference Manual

Chapter 4. Advanced Concepts
host IN A6 64 ::1234:5678:1212:5675 cust1.example.net.
IN A6 64 ::1234:5678:1212:5675 subnet5.example2.net.
$ORIGIN example.net.
cust1 IN A6 48 0:0:0:dddd:: ipv6net.example.net.
ipv6net IN A6 0 aa:bb:cccc::
$ORIGIN example2.net.
subnet5 IN A6 48 0:0:0:1:: ipv6net2.example2.net.
ipv6net2 IN A6 0 6666:5555:4::
This sets up forward lookups. To handle the reverse lookups, the provider example.net would have:
$ORIGIN \[x00aa00bbcccc/48].ip6.arpa.
\[xdddd/16] IN DNAME ipv6-rev.example.com.
and example2.net would have:
$ORIGIN \[x666655550004/48].ip6.arpa.
\[x0001/16] IN DNAME ipv6-rev.example.com.
example.com needs only one zone file to handle both of these reverse mappings:
$ORIGIN ipv6-rev.example.com.
\[x1234567812125675/64] IN PTR host.example.com.
39