Powered By Blogger

15 September 2008

6. Buat DNS server sendiri dengan Debian Etch

Beberapa apt source list lokal :

#kambing
deb http://kambing.ui.edu/debian etch main
contrib non-free
deb http://kambing.ui.edu/debian-security etch/updates
main contrib non-free

#komo.vlsm.org
deb http://komo.vlsm.org/debian etch
main non-free contrib
deb http://komo.vlsm.org/debian etch-proposed-updates
main non-free contrib

#debian.indika.net.id
deb http://debian.indika.net.id/debian etch
main non-free contrib
deb http://debian.indika.net.id/debian etch-proposed-updates
main non-free contrib

isi di /etc/apt/sources.list.
jangan lupa untuk mengupdate nya :
imamoberst:~# apt-get update
Download dan install bind9 :
imamoberst:~# apt-get install bind9
Buat File domain yang akan di manage :
imamoberst:~# touch /var/cache/bind/db.imamoberst.com
imamoberst:~# touch /var/cache/bind/db.120.136.16
isi file tersebut dengan beberapa paramater seperti berikut :
imamoberst:~# nano /var/cache/bind/db.imamoberst.com
————————————————————————————————-
$TTL 86400
@ IN SOA imamoberst.com. hostmaster.imamoberst.com. (
2008080407
28800
600
604800
86400 )

IN NS ns1.imamoberst.com
IN A 120.136.16.2
www IN A 120.136.16.3
————————————————————————————————-
imamoberst:~# nano /var/cache/bind/db.120.136.16
————————————————————————————————-
$TTL 86400 ; 1 day
@ IN SOA ns1.imamoberst.com. hostmaster.imamoberst.com. (
2006091000
28800
600
604800
86400
)
IN NS ns1.imamoberst.com.
2 PTR www.imamoberst.com

————————————————————————————————-

edit file /etc/bind/named.conf.local :
————————————————————————————————-
zone “imamoberst.com” {
type master;
file “/var/cache/bind/db.imamoberst.com”;
};

zone “16.136.120.in-addr.arpa”{
type master;
file “/var/cache/bind/db.120.136.16″;
};


————————————————————————————————-
restart dns anda :
imamoberst:~# /etc/init.d/bind9 restart

Tidak ada komentar: