Pages

Sunday, February 10, 2013

Konfigurasi DNS (Domain Name Service) Debian Lenny



  Setelah berhasil mengkonfigurasi Router Selanjutnya kita akan mengkonfigurasi DNS Server. pada setting kali ini anda harus teliti salah satu karakter saja maka konfigurasi tidak akan berjalan. Silahkan ikuti langkah berikut: 

* Kata2 yang bercetaktebal adalah perintah yang dijalankan pada komputer server.
* Kata2 yang 
berwarnamerah adalah yang harus anda ubah atau buat.

1) apt-get install bind9
2) cd /etc/bind
3) piconamed.conf
                 
 zone   "sekolah.sch.id" {
                        type master;
                        file  "/etc/bind/db.sekolah";
                  };

                  zone  "institute.com" {
                        type master;
                        file "/etc/bind/db.sub";
                  };

                  zone  "1.16.172.in-addr.arpa" {
                        type master;
                        file "/etc/bind/db.172";
                  };

4) piconamed.conf.options

                  options {
                                    directory "/var/cache/bind";
                                   forwarders {
                                                     192.168.1.62;
                                    };
                                    allow-query { any; };
                                    auth-nxdomain no; # conform to RFC1035
                                   listen-on-v6 { any; };
                  };
* Janganubah/hapusbaris yang lain.

5) cpdb.localdb.sekolah
6) cpdb.localdb.sub
7) cp db.127 db.172





8) picodb.sekolah

 ;
 ; BIND data file for local loopback interface
 ;
 $TTL 604800
@ IN SOA nama.sekolah.sch.id. nama.sekolah.sch.id. (
                                       2                    ; Serial
                                       604800          ; Refresh
                                       86400            ; Retry
                                       2419200        ; Expire
                                       604800 )        ; Negative Cache TTL
 ;
@           IN       NS                   nama.sekolah.sch.id.
@           IN       MX      10        mail.sekolah.sch.id.
@           IN       A                     172.16.1.62

nama     IN       A                     172.16.1.62
www      IN       CNAME          nama
mail        IN       CNAME          nama

9) picodb.sub

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA nama.institut.com.  nama.institut.com. (
                                  2              ; Serial
                                  604800    ; Refresh
                                  86400      ; Retry
                                  2419200  ; Expire
                                  604800 )  ; Negative Cache TTL
;
@       IN       NS               nama.institut.com.
@       IN       A                 172.16.1.62

nama                IN       A                  172.16.1.62
www                IN       CNAME       nama







10) pico db.172

; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA nama.sekolah.sch.id. nama.sekolah.sch.id. (
                                  1               ; Serial
                                  604800     ; Refresh
                                  86400       ; Retry
                                  2419200   ; Expire
                                  604800 )   ; Negative Cache TTL
;
@      IN         NS      nama.sekolah.sch.id.
62      IN         PTR    nama.sekolah.sch.id.


* 62 berasaldari : 172.16.1.62 


11) pico /etc/resolv.conf
search sekolah.sch.id
nameserver 127.0.0.1
nameserver 172.16.1.62
nameserver 192.168.1.62

12) /etc/init.d/bind9  restart
Stopping domain name service...: bind9.
Starting domain name service.....: bind9.


13) Sekarangkita check DNS Server kitamelalui windows, masuk CMD danketikkan :
C:\Users\antoro>nslookup sekolah.sch.id
Server: nama.sekolah.sch.id
Address: 172.16.1.62
Name: sekolah.sch.id
Address: 172.16.1.62


C:\Users\antoro>nslookup nama.sekolah.sch.id
Server: nama.sekolah.sch.id
Address: 172.16.1.62
Name: nama.sekolah.sch.id
Address: 172.16.1.62


C:\Users\antoro>nslookup mail.sekolah.sch.id
Server: nama.sekolah.sch.id
Address: 172.16.1.62
Name: nama.sekolah.sch.id
Address: 172.16.1.62
Aliases: mail.sekolah.sch.id


C:\Users\antoro>nslookup www.sekolah.sch.id
Server: nama.ssekolah.sch.id
Address: 172.16.1.62
Name: nama.sekolah.sch.id
Address: 172.16.1.62
Aliases: www.sekolah.sch.id


C:\Users\antoro>nslookup institut.com
Server: nama.sekolah.sch.id
Address: 172.16.1.62
Name: institut.com
Address: 172.16.1.62

Jika tampil tulisan berikut. Berarti konfigurasi Domain Name Service / DNS Server sudah berhasil.

No comments:

Post a Comment

Pages