KONFIGURASI DNS SERVER



apt-get install bind9

vim /etc/hosts                                       vim /etc/resolv.conf

127.0.0.1 localhost                                   search alfan.net

192.168.102.29   putu.net                                nameserver 192.168.10.29


vim /etc/bind/named.conf

zone “putu.net” {
type master;

file “/etc/bind/forward”;
};

zone “102.168.192.in-addr.arpa” {

type master;
file “/etc/bind/reverse”;
};

cp /etc/bind/db.local /etc/bind/forward

cp /etc/bind/db.127 /etc/bind/reverse

vim   /etc/bind/forward

;
; BIND forward putu.net
;
$TTL         604800
@     IN    SOA       ns.alfan.net. root.alfan.net. (

2            ; Serial

604800     ; Refresh

86400       ; Retry

2419200    ; Expire

604800 )    ; Negative Cache TTL
;

@               IN    NS        putu.net.
@               IN     A       192.168.102.29
www            IN     A       192.168.102.29
ftp              IN     A       192.168.102.29
mail            IN      A         192.168.102.29
stream        IN     A       192.168.102.29










vim
/etc/bind/reverse

;





; BIND reverse putu .net

;





$TTL
604800


@

IN
SOA
ns.putu.net. root.putu.net. (




1
; Serial




604800
; Refresh




86400
; Retry




2419200
; Expire




604800 )
; Negative Cache TTL
;





@

IN
NS
putu.net.

29

IN
PTR
putu.net.

29

IN
PTR
www.putu.net.

29

IN
PTR
ftp.putu.net.

29

IN
PTR
mail.putu.net.

29

IN
PTR
stream.putu.net.

/etc/init.d/bind9 restart

Komentar