step2nya sbb:
1. siapin paket bind versi terbaru, kalo cepetnya :
# yum -y install bind
2. Jika paket bind sudah di install, lakukan perintah berikut agar bind aktif pada saat pertama kali melakukan booting.
[root@adi named]# chkconfig named on
3. lakukan perintah start-stop dan restart untuk memastikan servce bind sudah terpasang, dengan nama program named
[root@adi named]# service named start
[root@adi named]# service named stop
[root@adi named]# service named restart
4. edit file named.conf yang ada di dan pastikan ada disana
# /var/named/chroot/var/named/chroot/etc/named.conf
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
/var/named/chroot/var/named/chroot/etc/named.conf
};
zone "." IN {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
//
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
// -------------
// Resolve DNS
// ------------
zone "xxxx" {
type master;
file "zone/named.xxxx";
allow-update { key "rndckey"; };
notify yes;
};
// ------------
// Reverse DNS
// ------------
zone "xxx.xxx.xxx.in-addr.arpa" {
type master;
file "zone/xxx.xxx.xxx.in-addr.arpa";
allow-update { key "rndckey"; };
notify yes;
};
5. tinggal bikin deh directory zone yang isinya file zone/xxx biar lebih terstruktur kumpulin semua disana
gitu deh coba test settingannya.
pake sintx: host atau dig