KONFIGURASI DNS SERVER
# ifconfig eth0 192.168.1.100 (bebas)
# apt-cdrom add
# apt-get install bind9
# cd /etc/bind
# pico named.conf.local
Tambahkan pada baris akhir :
Zone "desy.com" {
Type master;
File "/etc/bind/db.vita";
};
Zone "1.168.192.in-addr.arpa" {
Type master;
File "/etc/bind/db.sari";
};
Simpan dengan ctrl+o, keluar dengan ctrl+x
# cp db.local db.vita
# cp db.127 db.sari
# pico db.vita
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Chache TTL
;
@ IN NS desy.com.
@ IN A 192.168.1.100
www IN CNAME @
Simpan dengan ctrl+o, keluar dengan ctrl+x
# pico db.sari
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS desy.com.
100 IN PTR desy.com.
Simpan dengan ctrl+o, keluar dengan ctrl+x
# /etc/init.d/bind9 restart
# ping desy.com
Tidak ada komentar:
Posting Komentar