KONFIGURASI DNS SERVER
apt-get install bind9
vim /etc/hosts vim /etc/resolv.conf
127.0.0.1 localhost search PUTU.net
192.168.102.29 alfan.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
Posting Komentar