Monday, June 18, 2012

Setting DNS Pada UBUNTU 11.10

setelah sekian lama akhirnya timbul juga niat untuk membangun sebuah server dns, saya memilih ubuntu 11.10 sebagai servernya yang menurut saya lebih mudah...(walaupun tidak mudah2 banget). baiklah saya akan mulai saja...  cekedot

1. install ubuntu pada CPU


2. master ubuntu dapat di download di http://releases.ubuntu.com/11.10/ (file iso)


3. Login Sebagai root, dengan perintah:


       $ sudo -i


3. Pada terminal, masukkan perintah berikut untuk menginstal dns:
 #apt-get install bind9
4. Untuk pengujian dan troubleshooting masalah DNS adalah paket dnsutils. Untuk menginstal dnsutils    masukkan berikut ini:
#apt-get install dnsutils
5. Primary Master untuk domain remon.com. bisa kita edit pada /etc/bind/named.conf.local:
#pico /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include “/etc/bind/zones.rfc1918″;
zone “remon.com” {
type master;
file “/etc/bind/db.remon.com”;
};

    zone “1.168.192.in-addr.arpa” {
    type master; 
    notify no;
    file “/etc/bind/db.192″; 
    };


6. Buat file / etc / bind / db.remon.com:
#cp /etc/bind/db.local /etc/bind/db.remon.com
7. Edit file /etc/bind/db.remon.com
#pico /etc/bind/db. remon.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@         IN     SOA ns.remon.com. root.remon.com. (
                                        2 ; Serial
                              604800 ; Refresh
                                86400 ; Retry
                            2419200 ; Expire
                            604800 ) ; Negative Cache TTL
;
@                    IN       NS                  ns.remon.com.
@                    IN       A                     192.168.1.10
@                    IN       AAAA             ::1
ns                   IN       A                     192.168.1.10
www             IN       A                     192.168.1.10
www             IN       CNAME       ns.
ctt. : 192.168.1.10 adalah ip webserver
   
8. buat file /etc/bind/db.192 :

   #cp /etc/bind/db.127 /etc/bind/db.192

9. Edit /etc/bind/db.192 :

   #pico /etc/bind/db.192

  ;
  ; BIND reverse data file for local loopback interface 
  ;
  $TTL 604800
  @          IN      SOA     ns.remon.com. root.remon.com. (
                                                      1    ; Serial
                                            604800 ; Refresh
                                              86400 ; Retry
                                          2419200 ; Expire
                                          604800 ) ; Negative Cache TTL
  ;
  @                    IN       NS      ns.
  1                      IN       PTR    ns.remon.com.
  1                      IN       PTR    www.remon.com.

ctt. : "1" adalah  __ . __ . 1 . __ pada ip address

10. restart BIND9:
      #/etc/init.d/bind9 restart    

11. edit /etc/resolv.conf :

       #pico /etc/resolv.conf

      isi dengan :
            nameserver 192.168.1.11      --> ip dns server

12. Ping remon.com

semoga bermanfaat

No comments: