[root@pc19 ~]# vi /usr/local/bind9/etc/named.conf
options {
directory “/usr/local/bind9/var/named”;
};
zone “.” IN {
type hint;
file “named.ca”;
};
zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};
zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};
zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};
zone “0.168.192.in-addr.arpa” IN {
type master;
file “sya.arpa”;
allow-update { none; };
};
[root@pc19 ~]# vi /usr/local/bind9/var/named/sya.oke
$TTL 86400
$ORIGIN sya.oke.
sya.oke. IN SOA ns.sya.oke. root (
200709161 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
sya.oke. IN NS ns.sya.oke.
sya.oke. IN MX 10 surat.sya.oke.
ns.sya.oke. IN A 192.168.0.19
surat.sya.oke. IN A 192.168.0.19
web.sya.net. IN A 192.168.0.19
web.sya.net IN A 192.168.0.20
sub.sya.oke. IN NS ns.sya.oke.
ns.sub.sya.oke. IN A 192.168.0.14
tujuh.sya.oke. IN A 192.168.0.7
lapanblas IN A 192.168.0.18
[root@pc19 ~]# vi /usr/local/bind9/var/named/sya.arpa
$TTL 86400
$ORIGIN 0.168.192.in-addr.arpa.
@ IN SOA ns.sya.arpa. root (
200709161 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
;sya.oke. IN NS ns.sya.oke.
;sya.oke. IN MX 10 surat.sya.oke.
;ns.sya.oke. IN A 192.168.0.19
;surat.sya.oke. IN A 192.168.0.19
;www IN A 192.168.0.18
;web.sya.net. IN A 192.168.0.19
;web.sya.net IN A 192.168.0.20
@ IN NS ns.sya.oke.
7 IN PTR tujuh.sya.oke.
18 IN PTR lapanblas.sya.oke.
[root@pc19 ~]# vi /etc/resolv.conf
nameserver 192.168.0.19
[root@pc19 ~]# dig ptr 7.0.168.192.in-addr.arpa @localhost
[root@pc19 ~]# killall named
[root@pc19 ~]# vi /etc/resolv.conf
[root@pc19 ~]# /usr/local/bind9/sbin/named