This is a note that explains how to add a new IPv6 DNS zone into a running DNS server.
Goal
For illustration purpose, let's assume that we need to add a zone called v6.domain.com that has the following network address range 2001:200:130::/32 we will also add three hosts to the zone (cyclone, thunder and tornado).
In named.conf
zone "v6.domain.com" { type master; file "master/v6.domain.com.zone"; allow-transfer { 150.12.190.65; 192.58.19.82; }; }; zone "1.4.1.0.0.0.2.0.1.0.0.2.ip6.int" IN { type master; file "master/2001:200:130::.zone"; allow-transfer { 150.12.190.65; 192.58.19.82; }; };
In master/2001:200:130::.zone
$TTL 86400 ; 1day @ IN SOA ns6.domain.com. zrelli.jaist.ac.jp. ( 10004 ; serial 3600 ; refresh 900 ; retry 3600000 ; expiry 3600 ) ; minimum IN NS ns6.domain.com. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 8.0.2.a.c.4.e.f.f.f.0.4.7.0.2.0.1.2.3.4 IN PTR thunder.domain.com. e.4.0.e.1.1.e.f.f.f.9.e.7.0.2.0.1.2.3.4 IN PTR tornado.domain.com. 6.2.4.0.7.6.e.f.f.f.7.b.0.d.2.0.0.2.3.4 IN PTR cyclone.domain.com.
In master/v6.domain.com.zone
$TTL 86400 ; 1day @ IN SOA ns6.v6.domain.com. zrelli.jaist.ac.jp. ( 10004 ; serial 3600 ; refresh 900 ; retry 3600000 ; expiry 3600 ) ; minimum IN NS ns6.domain.com. ; ; ; localhost IN CNAME localhost. ns6 IN A 150.23.32.18 ;; ns0.bi.to pTLA-domain.com IN AAAA 2001:200:130:: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; thunder IN AAAA 2001:200:130:4321:207:40ff:fe4c:a208 cyclone IN AAAA 2001:200:130:4320:2d0:b7ff:fe67:426 tornado IN AAAA 2001:200:130:4321:207:e9ff:fe11:e04e
reload the zones
rndc reload
No comments:
Post a Comment