Konfigurasi DNS Server

 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.109;

           8.8.8.8;

           8.8.4.4;

    };      

SIMPAN

#nano db.192

(localhost)= stuwika.sch.id

@ IN NS stuwika.sch.id

109 IN PTR stuwika.sch.id

SIMPAN

#nano db.stuwika

(localhost)= stuwika.sch.id

@ IN NS stuwika.sch.id

@ IN A 192.168.12.109

ns1 IN A 192.168.12.109

www IN CNAME ns1

SIMPAN

#ls

#nano /etc/resolv.conf

192.168.12.109

8.8.8.8

SIMPAN

#/etc/init.d/networking restart

/etc/init.d/bind9 restart

nslookup 192.168.12.135

nslookup stuwika.sch.id

Komentar