Using bind 9.18, my named.conf has something like this:
zone "my-domain.com" {
type master;
file "/usr/local/etc/namedb/master/my-domain.com.zone";
};
zone "32/29.114.115.116.IN-ADDR.ARPA" {
type master;
file "/usr/local/etc/namedb/master/my-domain.com.rev";
};
In the zone file, both ipv4 and ipv6 addresses may be present,
and may represent the same host:
my-domain.com. IN A 116.115.114.32
ns.my-domain.com. IN A 116.115.114.32
my-domain.com. IN AAAA ::ffff:7473:7220
ns.my-domain.com. IN AAAA ::ffff:7473:7220
Is it necessary to explicitly define the IPv6 AAAA record when it matches the IPv4 address?
My freebsd 12.4 bind 9.18 install has a single localhost-reverse file;
there are two entries in named.conf referring to the same reverse file:
zone "127.in-addr.arpa" { type primary; file "/usr/local/etc/namedb/primary/localhost-reverse.db"; };
zone "0.ip6.arpa" { type primary; file "/usr/local/etc/namedb/primary/localhost-reverse.db"; };
The reverse file looks like:
$TTL 3h
@ SOA localhost. nobody.localhost. 42 1d 12h 1w 3h
NS localhost.
1.0.0 PTR localhost.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 PTR localhost.
How would the above example for my-domain.com be expressed in a single reverse file?
I get something like this:
named.conf:
zone "114.115.116.IN-ADDR.ARPA" {type master; file "..."; }
zone "7.2.7.3.7.4.f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.arpa" {type master; file "..."; }
reverse-zone file:
$TTL 3h
@ SOA ns.my-domain.com. root.my-domain.com. 42 1d 12h 1w 3h
IN NS ns.my-domain.com.
32 IN PTR ns.my-domain.com.
0.2 IN PTR ns.my-domain.com.
Would the above be correct?
Is it necessary to explicitly define the ipv6 reverse map when it matches the IPv4 address?