Konfigurasi DNS server
• 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. #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. #nano named.conf.options
(forwaders) hapus tanda /
ganti 192.168.12.114;
8.8.8.8;
8.8.4.4;
};
SIMPAN
7. #nano db.192
(localhost)= stuwika.sch.id
@ IN NS stuwika.sch.id
109 IN PTR stuwika.sch.id
SIMPAN
8. #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. #ls
9. #nano /etc/resolv.conf
192.168.12.114
8.8.8.8
SIMPAN
10. Restart
#/etc/init.d/networking restart
/etc/init.d/bind9 restart
11. Cek
nslookup 192.168.12.135
nslookup stuwika.sch.id