Pages

Kamis, 28 April 2011

DNS SERVER di UBUNTU 8.04


#ifconfig eth0 192.168.1.14
#apt-cdrom add
#apt-get install bind9
#cd /etc/bind
#pico named.conf.local
Tambahkan pada baris akhir
Zone”ipol.com” {
            Type master;
            File”/etc/bind/db.i”;
};
Zone”1.168.192.in-addr.arpa” {
            Type master;
            File”/etc/bind/db.p”{
};
Simpan dengan ctrl+o,keluar dengan ctrl+x
#cp db.local db.i
#cp db.127 db.p
#pico db.i
            ;
            ;BIND data file for local loopback interface
            ;
            $TTL    604800
            @         IN        SOA     localhost. Root.localhost. (
                                    2          ; Serial
                                    604800  ; Refresh
                                    86400   ; Retry
                                    2419200; Expire
                                    604800) ;Negative Cache TTL
            ;
@         IN        Ns                    ipol.com.
@         IN        A                     192.168.1.14
www    IN        CNAME                       @
Simpan dengan ctrl+o,keluar dengan ctrl+x
#pico db.p
;BIND data file for local loopback interface
;
$TTL    604800
            @         IN        SOA     localhost. Root.localhost. (
                                    1          ; Serial
                                    604800  ; Refresh
                                    86400   ; Retry
                                    2419200; Expire
                                    604800) ;Negative Cache TTL
            ;
@         IN        NS       ipol.com.
@         IN        PTR     ipol.com.
Simpan dengan ctrl+o,keluar dengan ctrl+x
#/etc/init.d/bind9 restart
#ping ipol.com

Harap maklum bila penulisan ada yang salah.......makasih

Tidak ada komentar:

Posting Komentar