KONFIGURASI DNS
DI DEBIAN 6 SQUEZZE
1. Instal terlebih dahulu aplikasinya
# apt-get install bind9
# cd /etc/bind
2. Setelah apalikasi semua telah terinstall maka yang pertama kita lakukan adalah Mengkonfigurasi file-file tersebut.
# cp db.local db.ananda
# cp db.127 db.1
# cp named.conf named.conf.asli
# nano named.conf
Zone “ananda.com” {
type master ;
file “/etc/bind/db.ananda”;
} ;
Zone “10.168.192.in-addr.arpa” {
type master;
file “/etc/bind/db.1”;
} ;
# nano db.ananda
Ø Lalu Konfigurasi seperti ini !
;
; BIND data file for local loopback interface
;
$TTL
|
604800
| |||||
@
|
IN
|
S0A
|
ananda.com.
|
root.ananda.com. (
| ||
2
|
;
|
Serial
| ||||
604800
|
;
|
Refresh
| ||||
86400
|
;
|
Retry
| ||||
2419200
|
;
|
Expire
| ||||
604800
|
)
|
;
|
Negative Cache TTL
| |||
;
| ||||||
@
|
IN
|
NS
|
ananda.com.
| |||
@
|
IN
|
A
|
192.168.10.1
| |||
www
|
IN
|
A
|
192.168.10.2
| |||
mail
|
IN
|
A
|
192.168.10.3
|
Ø Lalu Konfigurasi seperti ini !
;
; BIND reverse data file for local loopback interface
;
$TTL
|
604800
| |||||
@
|
IN
|
S0A
|
ananda.com.
|
root.ananda.com. (
| ||
1
|
;
|
Serial
| ||||
604800
|
;
|
Refresh
| ||||
86400
|
;
|
Retry
| ||||
2419200
|
;
|
Expire
| ||||
604800
|
)
|
;
|
Negative Cache TTL
| |||
;
| ||||||
@
|
IN
|
NS
|
ananda.com.
| |||
1
|
IN
|
PTR
|
ananda.com.
| |||
2
|
IN
|
PTR
|
www.ananda.com.
| |||
3
|
IN
|
PTR
|
mail.ananda.com.
|
3. Edit “ Resolv.conf ”
# Nano /etc/resolv.conf
Nanti Hasilnya Akan Muncul Seperti Dibawah Ini :
Search ananda.com
Nameserver 192.168.10.1
4. Setelah semua selesai di konfigurasi Restart Aplikasi BIND9 nya !
# /etc/init.d/bind9 restart
5. Kemudian Test DNS
# nslookup www.ananda.com.
# nslookup mail.ananda.com.
Nanti Hasilnya Akan Muncul Seperti Dibawah Ini :
Server : 192.168.10.1
Address : 192.168.10.1 #53
Name : www.ananda.com
Address “ 192.168.10.2
Komentar
Posting Komentar