Difference between revisions of "BIND: Reverse DNS"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | ==Konfigurasi== | |
− | + | Contoh untuk | |
+ | |||
+ | 216.74.109/24 | ||
+ | |||
+ | Tambahakan di /etc/named.conf | ||
zone “109.74.216.in-addr.arpa” { | zone “109.74.216.in-addr.arpa” { | ||
Line 8: | Line 12: | ||
}; | }; | ||
− | + | Tambah: | |
/var/named/109.74.216.in-addr.arpa | /var/named/109.74.216.in-addr.arpa | ||
− | + | Isi: | |
$TTL 86400 | $TTL 86400 | ||
Line 26: | Line 30: | ||
81 IN PTR my.reverse.dns.domain.com. | 81 IN PTR my.reverse.dns.domain.com. | ||
− | Save | + | Save & Restart |
− | |||
− | |||
+ | /etc/rc.d/init.d/named restart | ||
+ | ==Client== | ||
− | + | dig NS 81.109.74.216.in-addr.arpa | |
− | + | dig PTR 81.109.74.216.in-addr.arpa | |
− | dig | ||
Revision as of 05:43, 1 December 2018
Konfigurasi
Contoh untuk
216.74.109/24
Tambahakan di /etc/named.conf
zone “109.74.216.in-addr.arpa” { type master; file “/var/named/109.74.216.in-addr.arpa” };
Tambah:
/var/named/109.74.216.in-addr.arpa
Isi:
$TTL 86400 @ IN SOA localhost. root.localhost. ( 991079290 ; serial 28800 ; refresh 14400 ; retry 3600000 ; expire 86400 ; default_ttl ) IN NS dns.trouble-free.net. IN NS dns2.trouble-free.net. 81 IN PTR my.reverse.dns.domain.com.
Save & Restart
/etc/rc.d/init.d/named restart
Client
dig NS 81.109.74.216.in-addr.arpa dig PTR 81.109.74.216.in-addr.arpa