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 bercetak tebal adalah perintah yang dijalankan pada komputer server.
* Kata2 yang berwarna merah adalah yang harus anda ubah atau buat.
1) apt-get install bind9
2) cd /etc/bind
3) pico named.conf.local
                  zone   "situstkj.co.cc" {
                  type master;
                  file      "/etc/bind/db.situstkj";
                  };
  
                  zone  "sub.situstkj.co.cc" {
                  type master;
                  file     "/etc/bind/db.sub";
                  };
  
                  zone  "1.16.172.in-addr.arpa" {
                  type master;
                  file     "/etc/bind/db.172";
                  };
   
       | 4) pico named.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; };
 };
 * Jangan ubah/hapus baris yang lain.
 
 5) cp db.local db.situstkj
 6) cp db.local db.sub
 7) cp db.127 db.172
 8) pico db.situstkj
 
 ;
 ; BIND data file for local loopback interface
 ;
 $TTL 604800
 @ IN SOA antoro.situstkj.co.cc.   antoro.situstkj.co.cc. (
 2                      ; Serial
 604800          ; Refresh
 86400            ; Retry
 2419200        ; Expire
 604800 )        ; Negative Cache TTL
 ;
 @           IN         NS                       antoro.situstkj.co.cc.
 @             IN         MX        10        mail.situstkj.co.cc.
 @             IN         A                         172.16.1.62
 
 antoro       IN       A                         172.16.1.62
 www      IN         CNAME          antoro
 mail          IN         CNAME          antoro
 
 9) pico db.sub
 
 ;
 ; BIND data file for local loopback interface
 ;
 $TTL 604800
 @ IN SOA sub.situstkj.co.cc.    sub.situstkj.co.cc. (
 2                ; Serial
 604800    ; Refresh
 86400      ; Retry
 2419200  ; Expire
 604800 )  ; Negative Cache TTL
 ;
 @       IN         NS               sub.situstkj.co.cc.
 @         IN         A                   172.16.1.62
 sub     IN         A                    172.16.1.62
 www  IN         CNAME       sub
 
 
 10) pico db.172
 
 ; BIND reverse data file for local loopback interface
 ;
 $TTL 604800
 @ IN SOA antoro.situstkj.co.cc. antoro.situstkj.co.cc.   (
 1               ;   Serial
 604800     ; Refresh
 86400       ; Retry
 2419200   ; Expire
 604800 )   ; Negative Cache TTL
 ;
 @        IN           NS      antoro.situstkj.co.cc.
 62        IN         PTR      antoro.situstkj.co.cc.
 
 
 
 
 * 62 berasal dari : 172.16.1.62
 
 
 11) pico /etc/resolv.conf
 search situstkj.co.cc
 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) Sekarang kita check DNS Server kita melalui windows, masuk CMD dan   ketikkan :
 C:\Users\antoro>nslookup situstkj.co.cc
 Server: antoro.situstkj.co.cc
 Address: 172.16.1.62
 Name: situstkj.co.cc
 Address: 172.16.1.62
 
 C:\Users\antoro>nslookup antoro.situstkj.co.cc
 Server: antoro.situstkj.co.cc
 Address: 172.16.1.62
 Name: antoro.situstkj.co.cc
 Address: 172.16.1.62
 
 C:\Users\antoro>nslookup mail.situstkj.co.cc
 Server: antoro.situstkj.co.cc
 Address: 172.16.1.62
 Name: antoro.situstkj.co.cc
 Address: 172.16.1.62
 Aliases: mail.situstkj.co.cc
 
 C:\Users\antoro>nslookup www.situstkj.co.cc
 Server: antoro.situstkj.co.cc
 Address: 172.16.1.62
 Name: antoro.situstkj.co.cc
 Address: 172.16.1.62
 Aliases: www.situstkj.co.cc
 
 C:\Users\antoro>nslookup sub.situstkj.co.cc
 Server: antoro.situstkj.co.cc
 Address: 172.16.1.62
 Name: sub.situstkj.co.cc
 Address: 172.16.1.62
 
 Jika tampil tulisan berikut. Berarti konfigurasi Domain Name Service / DNS   Server sudah berhasil.
 | 
 
   
Baca Selengkapnya...