Tutorial DNS Server

17.05

Tutorial DNS Server!


#apt-get install bind9
#vim /etc/bind/named.conf.local
   
 zone "sekolah.sch.id" {
    type master;
    file "/etc/bind/db.sekolah";
 };

 zone "4.100.200.in-addr.arpa" {
    type master;
    file "/etc/bind/rev.sekolah";
 };

#vim /etc/bind/db.sekolah

$TTL 3d
@    IN    SOA    ns.sekolah.sch.id. server.sekolah.sch.id. (
            20121212    ;
            3h        ;
            15m        ;
            1w        ;
            1d)        ;
@    IN    NS    ns.sekolah.sch.id.
@    IN    MX  10  mail.sekolah.sch.id.
ns    IN    A    200.100.4.65
www    IN    A    200.100.4.66
mail    IN    A    200.100.4.67

#vim /etc/bind/rev.sekolah

$TTL 3d
@    IN    SOA    ns.sekolah.sch.id. server.sekolah.sch.id. (
            20121212    ;
            3h        ;
            15m        ;
            1w        ;
            1d)        ;
IN    NS    ns.sekolah.sch.id.
65    IN    PTR    ns.sekolah.sch.id.
66    IN    PTR    www.sekolah.sch.id
67    IN    PTR    mail.sekolah.sch.id.

#vim /etc/resolv.conf

 domain sekolah.sch.id
 search sekolah.sch.id
 nameserver 200.100.4.65

#vim /etc/hosts

 ns.sekolah.sch.id

#vim /etc/host.conf

order host, bind

#/etc/init.d/bind9 restart

ping ns.sekolah.sch.id

jika masih adayang bingung bisa di tanyakan :)

You Might Also Like

0 komentar