Rabu, 16 Januari 2008

DNS server

DNS server
Pertama install dengan perintah
#Apt-get install bind9
Konfigurasi named.confdengan perintah mcedit /etc/bind/named.conf Kemudian tambahkan

zone "tkj.com" { =====è tergantung nama server yang andatype master;
pakai file "/var/cache/bind/db.tkj"; =è letak zone file
};
zone "192.in-addr.arpa" { =====è ip yang anda gunakan
type master;
file "/var/cache/bind/db.192";
};
Konfigurasi zone file
Buatlah file dengan perintah touch db.tkj atau anda copy dari /etc/bind/db.localKemudian edit file db.tkj

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA tkj.com. root.tkj.com. (1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS tkj.com.
@ IN A 192.168.10.1
www IN A 192.168.10.1
Buatlah juga file db.192 dengan perintah touch db.192 atau anda copy dari /etc/bind/db.127Kemudian edit file db.192

;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA tkj.com. root.tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry2
419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS tkj.com.
1.10.168 IN PTR tkj.com.
1.10.168 IN PTR www.tkj.com.

Tidak ada komentar: