Saturday 11 December 2010

1.install Bind9.7
#cd/usr/ports/dns/bind97
#make && make install

2. tambahkan di file /etc/rc.conf
named_enable="YES"

3. buat file /etc/namedb/master/kelompok1.pti.uny.ac.id.db

$TTL 86400

@ IN SOA ns1.kelompok1.pti.uny.ac.id. hostmaster.uny.ac.id. (
2010102301 ; serial number YYMMDDNN
28800 ; refresh
7200 ; retry
864000 ; expire
86400 ; Min TTL
)

NS ns1.kelompo1.pti.uny.ac.id.
MX 10 mail.kelompok1.pti.uny.ac.id.

$ORIGIN kelompok1.pti.uny.ac.id.

hosting.kelompok1.pti.uny.ac.id. 86400 IN A 118.97.8.242
saya1.kelompok1.pti.uny.ac.id. 86400 IN CNAME hosting.kelompok1.pti.uny.ac.id.
saya2.kelompok1.pti.uny.ac.id. 86400 IN CNAME hosting.kelompok1.pti.uny.ac.id.
saya3.kelompok1.pti.uny.ac.id. 86400 IN A 118.97.8.244
mail.kelompok1.pti.uny.ac.id 86400 IN A 118.97.8.243
nsl.kelompok1.pti.uny.ac.id 86400 IN A 118.97.8.242

4. edit file /etc/namedb/named.conf
-->working direktori ke /etc/namedb
-->ditambah di file/etc/namedb/named.conf

zone "kelompok1.pti.uny.ac.id" {
type master;
file "master/kelompok1.pti.uny.ac.id.db";
allow-query {any;};
};

5. jalankan named
#/etc/rc.d/named start
6.cek dengan cara --> # dig saya3.kelompok1.pti.uny.ac.id