Blogger templates

Read more at http://lenterablogger.blogspot.com/2012/05/cara-buat-burung-twitter-terbang.html#WQfrLquIl02CM92g.99

KONFIGURASI DNS

1.      SETTING NETWORK
·         Cara melihat Interface
root@debian:~# ifconfig
·         Cara konfigurasi network
root@debian:~# nano /etc/network/interfaces
# The local network interface
auto eth0
iface eth0 inet static
            address 192.168.17.1
            netmask 255.255.255.248
            network 192.168.17.0
            gateway 192.168.17.6
            broadcast 192.168.17.7
            dns-nameservers 192.168.17.1
auto eth0:0
iface eth0:0 inet static
            address 192.168.17.2
            netmask 255.255.255.248
auto eth0:1
iface eth0:1 inet static
            address 192.168.17.3
            netmask 255.255.255.248

Konfigurai skrip menjadi seperti ini, kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)

root@debian:~# nano /etc/resolv.conf
search smkmuh2.sch.id
nameserver 192.168.17.1

Tambah skrip diatas ini, kemudian restart networknya
root@debian:~# /etc/init.d/networking restart


2.      DNS SERVER
·         Install Bind9
root@debian:~# apt-get install bind9

·         Setting file bind9
root@debian:~# nano /etc/bind/named.conf

zone “smkmuh2.sch.id”{
            type master:
            file “db.smk”;
};

zone “192.in-addr.arpa”{
            type master;
            file “db.192”;
};

kemudian tekan Ctrl +  O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)

·         Setting file forward dari DNS
root@debian:~# cd /etc/bind
roloot@debian:~# cp db.local /var/cache/bind/db.smk
root@debian:~# nano /var/cache/bind/db.smk

$TTL    604800
@         IN         A          smkmuh2.sch.id.        root.smkmuh2.sch.id. (
                                                2                      ; Serial
                                      604800                      ; Refresh
                                        86400                      ; Retry
                                    2419200                      ; Expire
                                      604800                      ; Negative Cache TTL
;
@                     IN         NS        smkmuh2.sch.id.
@                     IN         A          192.168.17.1
www                IN         A          192.168.17.2
mail                 IN         A          192.168.17.3

kemudian tekan Ctrl +  O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)
root@debian:~# cp db.127 /var/cache/bind/db.192
root@debian:~# nano /var/cache/bind/db.192

$TTL    604800
@         IN         A          smkmuh2.sch.id.        root.smkmuh2.sch.id. (
                                                1                      ; Serial
                                      604800                      ; Refresh
                                        86400                      ; Retry
                                    2419200                      ; Expire
                                      604800                      ; Negative Cache TTL
;
@                     IN         NS        smkmuh2.sch.id.
1.17.168          IN         PTR      smkmuh2.sch.id.
2.17.168          IN         PTR      www.smkmuh2.sch.id.
3.17.168          IN         PTR      mail.smkmuh2.sch.id.
           
kemudian tekan Ctrl +  O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar) lalu restart bind9

root@debian:~# /etc/init.d/bind9 restart
root@debian:~# nslookup smkmuh2.sch.id
root@debian:~# nslookup 192.168.17.1
root@debian:~# nslookup www.smkmuh2.sch.id
root@debian:~# nslookup 192.168.17.2
root@debian:~# nslookup mail.smkmuh2.sch.id
root@debian:~# nslookup 192.168.17.3
Share this article :
 

Posting Komentar

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. LAPORAN UJIAN PRAKTIK - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger