Minggu, 06 Maret 2011

Konfigurasi DNS




Konfigurasi DNS

  1. Edit  file /etc/bind/named.conf.local
Unutk editor bias menggunakan vi atau nano.

Cd  /etc/bind/
Cat named.conf  >> named.conf.local

Nano named.conf.local. Lihat pada configurasi file ini pada halaman belakang


  1. cp db.local xxx.ac.id
edit sehingga nampak sebagai berikut:
            ;
; BIND data file for local loopback interface
;
$TTL     604800
@ IN      SOA     ns.kampusb.ac.id. root.kampusb.ac.id. (
               2008110401       ; Serial
                  604800        ; Refresh
                   86400        ; Retry
                 2419200        ; Expire
                  604800 )      ; Negative Cache TTL
;
@ IN      NS      kampusb.ac.id.
@ IN      A       192.168.30.58
www      IN      CNAME   @
@ IN      MX      10 @


  1. cp db.127 192.168.30.in-addr.arpa


  1. Buat file baru dengan nama file sesuai hostname anda contoh xxx.ac.id
nano /etc/bind/xxx.ac.id, dan ketik:

;
; BIND data file for local loopback interface
;
$TTL   604800
@        IN        SOA    ns.kampusb.ac.id. root.kampusb.ac.id. (
                              2008110401          ; Serial
                                     604800                       ; Refresh
                                      86400                        ; Retry
                                    2419200                      ; Expire
                                     604800 )         ; Negative Cache TTL
;
@        IN        NS       kampusb.ac.id.
@        IN        A         192.168.30.58
www   IN        CNAME         @
@        IN        MX      10 @




  1. Restart dns server
/etc/init.d/bind9 restart

  1. Test dns server
Nslookup
> server xxx.ac.id
   result 
> yahoo.com
   result

atau dig xxx.ac.id

Tidak ada komentar:

Posting Komentar