Rabu, 09 Maret 2011

Panduan web server..

langkah-langkahya :
1. mounting cdrom
2. install paket dns server
#apt-get install bind9
3. masuk ke direktori dns
tkj:~# cd /etc/bind
4. edit file /etc/bind/named.conf.local
tkj:/etc/bind# nano named.conf.local

5. tambahkan isi file di bawah ini :
zone "d3tkj.com" {
type master;
file "/etc/bind/d3";
};

zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/d3.ip";
};
6. copykan file db.local ke file /etc/bind/d3
tkj:/etc/bind# cp db.local d3
7.copykan file db.255 ke file /etc/bind/d3.ip
tkj:/etc/bind# cp db.local d3.ip
8. edit file d3, kemudian ubah seperti isi file di bawah ini
$TTL 604800
@ IN SOA d3tkj.com. root.d3tkj.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS d3tkj.com.
@ IN A 192.168.0.14
9. edit file d3.ip, kemudian ubah seperti isi file di bawah ini
$TTL 604800
@ IN SOA d3tkj.com. root.d3tkj.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS d3tkj.com.
14 IN PTR @
10. merestart dns seerver
tkj:/etc/bind# /etc/init.d/bind9 restart
Stopping domain name service...: bind9.
Starting domain name service...: bind9.
11. cara memeriksa hasil konfigurasi dns server
tkj:/etc/bind# nslookup d3tkj.com
Server: 192.168.0.14
Address: 192.168.0.14#53

Name: d3tkj.com
Address: 192.168.0.14
==========
tkj:/etc/bind# dig d3tkj.com

; <<>> DiG 9.5.1-P3 <<>> d3tkj.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10993
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;d3tkj.com. IN A

;; ANSWER SECTION:
d3tkj.com. 604800 IN A 192.168.0.14

;; AUTHORITY SECTION:
d3tkj.com. 604800 IN NS d3tkj.com.

;; Query time: 0 msec
;; SERVER: 192.168.0.14#53(192.168.0.14)
;; WHEN: Tue Mar 8 09:12:42 2011

12. membuat sub domain dengan nama :ida.d3tkj.com
edit file /etc/bind/db
kemudian tambahkan isi baris di bawah ini
$TTL 604800
@ IN SOA d3tkj.com. root.d3tkj.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS d3tkj.com.
@ IN A 192.168.0.14
www IN CNAME @
ida IN CNAME @


;; MSG SIZE rcvd: 57

1 komentar: