10.30.2009

Setting dan konfigurasi DNS Server di debian 4

. 10.30.2009

> Install bind9

Dgn perintah : #apt-get install bind9

> copy kn file db.127 menjadi db 192 dan file db.local menjadi db.pephyboy

Dgn perintah :
#cp /etc/bind/db.127 /etc/bind/db.192
#cp /etc/bind/db.local /etc/bind/db.pephyboy

> edit file db.192 :

;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA pephy.com root.pephy.com (
11 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS pephy.com.
13.123.168 IN PTR pephy.com.


> edit juga file db.pephyboy

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA pephy.com. root.pephy.com. (
12 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS pephy.com.
@ IN A 192.168.123.13
www IN A 192.168.123.13

> Edit lagi named.conf (ganti tulisan localhost dan 127) :

zone “pephy.com” {
type master;
file “/etc/bind/db.pephyboy”;
};

zone “192.in-addr.arpa” {
type master;
file “/etc/bind/db.192″;

};

> Jangan lupa setting interfacenya ;

iface lo inet loopback

iface eth0 inet static
address 192.168.123.13
netmask 255.255.255.0

> Dan setting resolv.conf :

nameserver 192.168.123.13

> Restart interface dan bind9

Dgn perintah :

# /etc/init.d/networking restart
# /etc/init.d/bind9 restart

> Cek dgn perintah ;

#nslookup pephy.com (nama domain yg telah di setting)
#ping pephy.com .

Semoga berhasil iagh ^_^

1 comments:

Anonim mengatakan...

:))
=))

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Posting Komentar

 

My Yahoo Messanger



ID :r.ibnu

My FrIenDstEr

f4bregaz.blogspot.com is proudly powered by Blogger.com | Template by o-om.com