The AAAA statement

La mot clef AAAA a le même role avec IPv6 que le mot clef A avec IPv4. Prononcer AAAA "quatre A".

root@obelix:/var/log # cat /etc/bind/db.zoxx_net_external
$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 #

Vérifier cet enregistrement (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

Configuration du Reverse DNS (PTR)

named.conf

Nous devons ajouter une zone correspondant à notre IPv6 prefix dans fichier named.conf.

zone "9.7.3.8.f.6.1.0.0.2.ip6.arpa"                                                 
{       
        type master;
        file "/etc/bind/db.2001";                                                   
};

ipv6calc

L'outil ipv6calc nous permet de générer la bonne chaine de caractères pour gérer plus tard le reverse DNS ipv6 de nos hosts dans bind.

root@idefix:~ # ipv6calc --out=revnibbles.arpa 2001:6f8:379:0:213:ceff:fe0d:355b
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.