IPv6 Reverse DNS Delegation Zone (BIND)

/etc/named.conf options

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; 2000:5a40:0:1::136; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 2000:5a40::/32; };
allow-query-cache { localhost; 2000:5a40::/32; };
recursion yes;

Zone file announcment

zone "0.4.a.5.0.0.0.2.ip6.arpa" IN {
type master;
file "reverse-2000:5A40";
allow-update { none; };
allow-query { any; };
};

Zone file

$TTL 1h ; Default TTL
@ IN SOA ns1.jalam.me. jasim.alam.jalam.me. (
2018062401 ; serial
1h ; slave refresh interval
15m ; slave retry interval
1w ; slave copy expire time
1h ; NXDOMAIN cache time
)
; domain name servers
@ IN NS ns1.jalam.me.

; IPv6 PTR entries
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.4.a.5.0.0.0.2.ip6.arpa. IN PTR host1.jalam.me.
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.a.5.0.0.0.2.ip6.arpa. IN PTR host2.jalam.me.

 

Dont forget to restart bind service

# systemctl restart named

Verify

#named-checkconf /etc/named.conf 
# named-checkzone 0.4.a.5.0.0.0.2.ip6.arpa  /var/named/reverse-2000\:5A40 
zone 0.4.a.5.0.0.0.2.ip6.arpa/IN: loaded serial 2018062401 OK

https://network-tools.webwiz.net/reverse-dns.htm

Some useful tool:

  • http://www.zytrax.com/books/dns/ch3/#ipv6-tool-rev
  • http://rdns6.com/zone

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.