Difference between revisions of "BIND: Reverse DNS"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
For this example we are using the IP block 216.74.109/24
+
==Konfigurasi==
  
In /etc/named.conf add:
+
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:
 
  };
 
  };
  
Create the following file:
+
Tambah:
  
 
  /var/named/109.74.216.in-addr.arpa
 
  /var/named/109.74.216.in-addr.arpa
  
Inside this file use the following example configuration:
+
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 your changes, then restart named using /etc/rc.d/init.d/named restart
+
Save & Restart
 
 
A lookup of 216.74.109.81 would show my.reverse.dns.domain.com
 
  
 +
/etc/rc.d/init.d/named restart
  
 +
==Client==
  
  
==Client==
+
dig NS 81.109.74.216.in-addr.arpa
 
+
  dig PTR 81.109.74.216.in-addr.arpa
  dig ptr 10.34.239.216.in-addr.arpa
 
  
  

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


Pranala Menarik