Create IPv6 Address Record (AAAA) in a Minute.
This is not the most appropriate configuration of IPv6 address record or AAAA. However, these steps only take a minute to create AAAA running well. I assume that you have installed BIND9 into your machine.
For instance,
contoh.ta and www.contoh.ta refer to fc00:1::132, fc00:1::133, and fc00:1::134,
icscf.contoh.ta refers to fc00:1::142,
pcscf.contoh.ta refers to fc00:1::152,
scscf.contoh.ta refers to fc00:1::162.
First, create zone by adding this script to your named.conf.local file.
$ sudo vim /etc/bind/named.conf.local
zone "contoh.ta" { type master; file "/etc/bind/contoh.aja"; };
Then, create contoh.aja file containing this script.
$ sudo vim /etc/bind/contoh.aja
; ; data contoh.ta ; $TTL 604800 $ORIGIN contoh.ta. @ IN SOA contoh.ta. root.contoh.ta. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS contoh.ta. @ IN AAAA fc00:1::132 IN AAAA fc00:1::133 IN AAAA fc00:1::134 www IN CNAME @ icscf IN AAAA fc00:1::142 pcscf IN AAAA fc00:1::152 scscf IN AAAA fc00:1::162
*) inspired by two friends of mine asked me why their AAAA configuration unable to run.