KONFIGURASI DNS
KONFIGURASI DNS SERVER
1. Konfigurasi Router Terlebih dahulu
2. Aktifkan cd 1
#apt-cdrom add
3. Install
#apt-get install build-essential
#apt-get install bind9
4. Seting DNS server
#cd /etc/bind
#ls
#cp db.127 db.192
#cp db.local db.stuwika
5. Masuk ke file :
#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
6. Masuk ke file :
#nano named.conf.options
Edit :
forwaders hapus tanda /
Ganti :
192.168.12.109;
8.8.8.8;
8.8.4.4;
};
SIMPAN
7. Masuk ke db.192 :
#nano db.192
(localhost)= stuwika.sch.id.
Edit :
@ IN NS stuwika.sch.id.
109 IN PTR stuwika.sch.id.
SIMPAN
8. Masuk ke db.stuwika :
#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
8. Ketik :
#ls
9. Masuk ke resolv :
#nano /etc/resolv.conf
Edit :
192.168.12.124
8.8.8.8
SIMPAN
10. Restart :
#/etc/init.d/networking restart
#/etc/init.d/bind9 restart
11. Cek
nslookup 192.168.12.124
nslookup stuwika.sch.id
Komentar
Posting Komentar