jam

Senin, 10 Oktober 2011

konfigurasi DNS pd DEbian

DEBIAN

Artikel ini akan membahas tentang cara Konfigurasi DNS server pada Linux Debian..

Hal yang harus kita ketahui untuk membuat DNS server file yang harus di konfigurasi pada linux yaitu bernama : named.conf. Edit file ini untuk mengkonfigurasi DNS Server.. Dengan IP server 192.168.1.1

cara seperti berikut :

Agar FIle named.conf bisa di edit paket debian yang harus kita install adalah paket bind atau named dengan cara :

server@root #apt-get install bind

setelah terinstalla cari file named.conf dengan cara :

server@root #locate named.conf

/etc/bind/named.conf

Setelah itu edit file tersebut dengan perintah :

server@root #mcedit /etc/bind/named.conf

lalu tambahkan konfigurasi di bawah kedalamnya :

zone "iman-tkj.com" {
type master;
file "/etc/bind/zones/iman-tkj.com";
};

zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/forward.iman-tkj.com";
};

Setelah itu Copy file /etc/bind/db.local dengan nama /etc/bind/zones/iman-tkj.com dan file /etc/bind/db.127 dengan nama /etc/bind/zones/forward.iman-tkj.com dengan cara :

server@root #cp /etc/bind/db.local /etc/bind/zones/iman-tkj.com

server@root #cp /etc/bind/db.127 /etc/bind/zones/forward.iman-tkj.com

Lalu edit kedua file tadi seperi dibawah ini :

server@root #mcedit /etc/bind/iman-tkj.com

$TTL 604800
@ IN SOA iman-tkj.com. root.iman-tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS iman-tkj.com. # di ganti dengan nama domain yang anda gunakan
@ IN A 192.168.1.1 # ganti ip yang anda gunakan
www IN CNAME @


server@root #mcedit /etc/bind/forward.iman-tkj.com

$TTL 604800
@ IN SOA iman-tkj.com. root.iman-tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS iman-tkj.com. # di ganti dengan nama domain yang anda gunakan
1 IN PTR 192.168.1.1 # di ganti dengan ip anda

Setelah itu edit file /etc/resolv.conf seperti dibawah ini :

server@root #mcedit /etc/resolv.conf

nameserver 192.168.1.1

Reload paket bind dengan cara berikut :

server@root #/etc/init.d/bind restart



SELESAI DEH BIKIN DNS SERVERNYA