IPv6 dns configuration with bind
Par Ludovic Francois, samedi 15 juillet 2006 à 11:33 :: ipv6 :: #20 :: rss
IPv6 dns configuration with bind
The AAAA statement
This AAAA IPv6 address has the same role as A record in IPv4. AAAA reads "quad A".
root@obelix:/var/log # cat /etc/bind/db.zoxx_net_external 10:15 #3820
$TTL 60
zoxx.net. IN SOA ns1.zoxx.net. ludo.epita.fr. (
2005050809
10800
3600
604800
86400 )
TXT "zoxx"
MX 10 smtp
MX 20 smtp2
IN A 82.228.214.25
IN AAAA 2001:5c0:8fff:fffe::524f
@ IN NS ns1.zoxx.net.
@ IN NS ns6.gandi.net.
ns1 IN A 82.228.214.25
ns1 IN AAAA 2001:5c0:8fff:fffe::524f
obelix IN A 82.228.214.25
obelix IN AAAA 2001:5c0:8fff:fffe::524f
meetyou IN A 82.228.214.25
meetyou IN AAAA 2001:5c0:8fff:fffe::524f
marvin IN A 62.147.144.199
www IN CNAME obelix
ddn IN CNAME obelix
mail IN A 82.228.214.25
mail IN AAAA 2001:5c0:8fff:fffe::524f
smtp IN A 82.228.214.25
smtp IN AAAA 2001:5c0:8fff:fffe::524f
smtp2 IN A 213.41.180.131
root@obelix:/var/log # 10:15 #3821
!!! check it (host or host -t AAAA)
root@obelix:/var/log # host obelix.zoxx.net obelix.zoxx.net has address 82.228.214.25 obelix.zoxx.net has IPv6 address 2001:5c0:8fff:fffe::524f
Reverse DNS configuration (PTR)
named.conf
We need to add a zone corresponding at our IPv6 prefix in the named.conf file.
zone "9.7.3.8.f.6.1.0.0.2.ip6.arpa"
{
type master;
file "/etc/bind/db.2001";
};
ipv6calc
The tool ipv6calc allows us to generate the good string to manage later the reverse DNS from the ipv6 of our hosts.
root@idefix:~ # ipv6calc --out=revnibbles.arpa 2001:6f8:379:0:213:ceff:fe0d:355b 22:36 #9413 No input type specified, try autodetection...found type: ipv6addr b.5.5.3.d.0.e.f.f.f.e.c.3.1.2.0.0.0.0.0.9.7.3.0.8.f.6.0.1.0.0.2.ip6.arpa. root@idefix:~ #
db.2001
Finally our zone file for the prefix 9.7.3.8.f.6.1.0.0.2.
$TTL 60
@ IN SOA ns1.zoxx.net. ludo.epita.fr. (
2006070406 ; Serial
10800 ; Refresh
3600 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
IN NS ns1.zoxx.net.
TXT "zoxx"
b.5.5.3.d.0.e.f.f.f.e.c.3.1.2.0.0.0.0.0.9.7.3.0.8.f.6.0.1.0.0.2.ip6.arpa. IN PTR idefix.zoxx.net.
a.2.4.8.a.3.e.f.f.f.d.2.2.0.2.0.0.0.0.0.9.7.3.0.8.f.6.0.1.0.0.2.ip6.arpa. IN PTR asterix.zoxx.net.
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire