Konfigurasi DNS Debian 6


Konfigurasi DNS Debian 6


Nama Domain              : tkj.net
IP address                    : 192.168.9.200
1. # cd /etc/bind/
2. Ubah isi dari berkas named.conf.default-zones menjadi seperti ini:
zone “.” {
type hint;
file “/etc/bind/db.root”;
};
zone “tkj.net” {
type master;
file “/etc/bind/db.tkj”;
};


zone “192.in-addr.arpa” {
type master;
file “/etc/bind/db.192″;
};

3. Salin tempel konfigurasi
# cp db.local db.tkj
# cp db.127 db.192
4. Ubah isi dari berkas db.tkj menjadi seperti ini:
$TTL    604800
@       IN      SOA     tkj.net. root.tkj.net. (
2         ; Serial
604800         ; Refresh
86400         ; Retry
2419200         ; Expire
604800 )       ; Negative Cache TTL ;
@         IN      NS      tkj.net.
@         IN      A       192.168.9.200
www    IN      A       192.168.9.200
5. Ubah isi dari berkas db.192 menjadi seperti ini:
$TTL    604800
@       IN      SOA     tkj.net..web.id. root. tkj.net.. (
1         ; Serial
604800         ; Refresh
86400         ; Retry
2419200         ; Expire
604800 )       ; Negative Cache TTL;
@                     IN      NS      tkj.net.
192                  IN      PTR     tkj.net..
6. Ubah isi dari berkas /etc/resolv.conf menjadi seperti ini:
nameserver 127.0.0.1
7. Restart service bind
# /etc/init.d/bind9 restart

0 comments:

Post a Comment