Delegasi zones & Slave domain

By init_(0)

[root@pc19 ~]# vi /usr/local/bind9/etc/named.conf
options {
directory “/usr/local/bind9/var/named”;
};
#       allow-query { 192.168.0.0.0/24;
#};

zone “.” IN {
type hint;
file “named.ca”;
};
/*
#zone “localhost” IN {
#       type master;
#       file “localhost.zone”;
#       allow-update { none; };
#};

#zone “0.0.127.in-addr.arp” IN {
#       type master;
#       file “named.local”;
#       allow-update { none; };
#};
*/
zone “sya.oke” IN {
type master;
file “sya.oke”;
allow-update { none; };
};

//delegasi zones

zone “sub1.carvil.org” IN {
type master;
file “sub1.carvil.org”;
allow-update { none; };
};
zone “sub.salman.net.id” IN {

[root@pc19 ~]# ls -l /usr/local/bind9/var/named/
total 24
-rw-r–r–  1 root root 2517 Sep 16 12:45 named.ca
-rw-r–r–  1 root root 2517 Jan 28  2004 named.root
drwxr-xr-x  2 root root 4096 Sep 30 14:22 slaves/
-rw-r–r–  1 root root  483 Sep 30 12:43 sub1.carvil.org
-rw-r–r–  1 root root  492 Sep 30 13:28 sub.salman.net.id
-rw-r–r–  1 root root  450 Sep 30 11:56 sya.oke

[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
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

sub.sya.oke.    IN              NS              ns.sya.oke.
ns.sub.sya.oke. IN              A               192.168.0.14
$TTL 86400
$ORIGIN sub1.carvil.org.
@               IN      SOA     ns.sub1.carvil.org. 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

sub1.carvil.org.        IN              NS              ns.sub1.carvil.org.
ns.sub1.carvil.org.     IN              A               192.168.0.14

Tinggalkan Balasan