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”;
};
type hint;
file “/etc/bind/db.root”;
};
type master;
file “/etc/bind/db.tkj”;
};
zone “192.in-addr.arpa” {
type master;
file “/etc/bind/db.192″;
};
type master;
file “/etc/bind/db.192″;
};
3. Salin tempel konfigurasi
# cp db.local db.tkj
# cp db.127 db.192
# 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
@ 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..
@ 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
Click to see the code!
To insert emoticon you must added at least one space before the code.