Konfigurasi DNS Server

Konfigurasi Router Terlebih dahulu

 aktifkan cd 1 

#apt-cdrom add

#apt-get install build-essential

#apt-get install bind9



seting DNS server


#cd /etc/bind

#ls

#cp db.127 db.192

#cp db.local db.stuwika

#nano named.conf.local



tuliskan : zone "stuwika.sch.id" {

  type master;

  file "/etc/bind/db.stuwika";

  };



    zone "12.168.192.in-addr.arpa" {

  type master;

  file "/etc/bind/db.192";

  }; 



SIMPAN

#nano named.conf.options

(forwaders) hapus tanda /

ganti 192.168.12.129;

           8.8.8.8;

           8.8.4.4;

    };      

SIMPAN

#nano db.192



(localhost)= stuwika.sch.id

@ IN NS stuwika.sch.id.

129 IN PTR stuwika.sch.id.

SIMPAN

#nano db.stuwika



(localhost)= stuwika.sch.id

@ IN NS stuwika.sch.id.

@ IN A 192.168.12.129

ns1 IN A 192.168.12.129

www IN CNAME ns1

SIMPAN



#ls

#nano /etc/resolv.conf



192.168.12.129

8.8.8.8

SIMPAN

#/etc/init.d/networking restart



/etc/init.d/bind9 restart



nslookup 192.168.12.129



nslookup stuwika.sch.id

Komentar

Postingan populer dari blog ini

Konfigurasi NTP Server

Konfigurasi Mail Server

Konfigurasi Samba Server