Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

[Bind9 & Configuration]

jihad:~# apt-get install bind9


jihad:~# nano /etc/bind/named.conf
-----> Tambahkan konfigurasi di bawah ini
zone "irhaby.org" {
type master;
file "/var/cache/bind/db.irhaby";
};
zone "100.222.202.in-addr.arpa" {
type master;
file "/var/cache/bind/db.12";
};

[Membuat db.irhaby & db.12]


jihad:~# cp /etc/bind/db.local /var/cache/bind/db.irhaby
jihad:~# cp /etc/bind/db.127 /var/cache/bind/db.12
jihad:~# nano /var/cache/bind/db.irhaby
;
; BIND data file for local loopback interface
;
$TTL 604800
@
IN SOA
irhaby.org. root.irhaby.org. (
2
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN NS irhaby.org.
@
IN A
202.222.100.12
IN MX 1
mail.irhaby.org
www
IN A
202.222.100.12
mail
IN A
202.222.100.12
smail IN A
202.222.100.12
ftp
IN A
202.222.100.12
video IN A
202.222.100.12
radio IN A
202.222.100.12
wiki
IN A
202.222.100.12
ntp
IN A
202.222.100.12

-----> Ket: www, mail, smail, ftp, video, radio, wiki, dll, digunakan dalam penamaan sub domain.
Contoh : www.irhaby.org, mail.irhaby.org, ftp.irhaby.org, wiki.irhaby.org dll.

Jihad_Irhaby
Page 1

jihad:~# nano /var/cache/bind/db.12


;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@
IN SOA irhaby.org. root.irhaby.org. (
1
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
IN NS irhaby.org.
12 IN PTR 202.222.100.12.

jihad:~# /etc/init.d/bind9 restart

[Test]
jihad:~# ping irhaby.org
PING irhaby.org (202.222.100.12) 56(84) bytes of data.
64 bytes from jihad.irhaby.org (202.222.100.12): icmp_seq=1 ttl=64 time=0.119 ms
64 bytes from jihad.irhaby.org (202.222.100.12): icmp_seq=2 ttl=64 time=0.069 ms
64 bytes from jihad.irhaby.org (202.222.100.12): icmp_seq=3 ttl=64 time=0.084 ms
^C

jihad:~# nslookup www.irhaby.org


Server:
Address:

202.222.100.12
202.222.100.12#53

Name: www.irhaby.org
Address: 202.222.100.12

jihad:~# nslookup 202.222.100.12


Server:
Address:

202.222.100.12
202.222.100.12#53

12.100.222.202.in-addr.arpa name = 202.222.100.12.

[Finish]

Jihad_Irhaby
Page 2

You might also like