IPv6: Reverse DNS
Revision as of 09:06, 22 February 2019 by Onnowpurbo (talk | contribs)
Record Type | Description | Format |
---|---|---|
AAAA | Maps a hostname to an IPv6 address. (Equivalent to an A record in IPv4.) | www.abc.test AAAA 3FFE:YYYY:C18:1::2 |
PTR | Maps an IPv6 address to a hostname. (Equivalent to a pointer record [PTR] in IPv4.) | 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.8.1.c.0.y.y.y.y.e.f.f.3.ip6.int PTR www.abc.test |
Menggunakan tool untuk meng-"hitung" reverse DNS (rDNS)
Contoh Konfigurasi rDNS IPv6 BIND
Edit
sudo vi /etc/bind/named.conf.local
Asumsi subnet 2345::/64, reverse zone- adalah,
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.4.3.2.ip6.arpa." { type master; file "/etc/bind/zones/db.5.4.3.2"; # 2345::/64 subnet allow-transfer { 10.128.20.12; 2345::2; }; # ns2 private IP address - secondary };
Buat Reverse Zone IPv6
Buat dan edit
cd /etc/bind/zones sudo cp ../db.127 ./db.5.4.3.2 sudo vi /etc/bind/zones/db.5.4.3.2
Awalnya akan berisi kira-kira
$TTL 604800 @ IN SOA localhost. root.localhost. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. ; delete this line 1.0.0 IN PTR localhost. ; delete this line
Ubah menjadi kira-kira,
; ; 2345::1/64 ; ; Zone file built with the IPv6 Reverse DNS zone builder ; http://rdns6.com/ ; $TTL 1h ; Default TTL @ IN SOA nyc3.contoh.web.id. admin.nyc3.contoh.web.id. ( 2019022001 ; serial 1h ; slave refresh interval 15m ; slave retry interval 1w ; slave copy expire time 1h ; NXDOMAIN cache time ) ; ; domain name servers ; @ IN NS ns1.nyc3.contoh.web.id. @ IN NS ns2.nyc3.contoh.web.id. ; IPv6 PTR entries 1.0.1 IN PTR host1.nyc3.contoh.web.id. 2.0.1 IN PTR host2.nyc3.contoh.web.id.