So I'm trying to set up reverse DNS for an IPv6 address using BIND9, and I'm having a little trouble getting it to work.
Assume I have 2001:41D0:2:D447::/64 assigned to my server and I want 2001:41d0:2:d447:0:0:0:ddc0 to resolve to just.an.example.com
I have the following in named.conf.local
zone "example.com" {
type master;
file "/etc/bind/example.com";
};
zone "7.4.4.d.2.0.0.0.0.d.1.4.1.0.0.2.ip6.arpa" {
type master;
file "/etc/bind/2001:41d0:2:d447::.rdns";
};
In example.com I have the line
just.an.example.com. IN AAAA 2001:41d0:2:d447:0:0:0:ddc0
which appears to work fine.
In 2001:41d0:2:d447::.rdns I have
$TTL 1h
@ IN SOA ns1.example.com. admin.example.com. (
2014103002 ; serial
1h ; slave refresh interval
15m ; slave retry interval
1w ; slave copy expire time
1h ; NXDOMAIN cache time
)
@ IN NS ns1.example.com.
0.c.d.d.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR just.an.example.com.
and this doesn't appear to work. I think I'm messing up one of the IPv6 addresses in either the PTR line or the zone line in named.conf.local.
Does anyone spot anything wrong syntax wise?