Fedora 10
Sponsored Link

Configure as a slave DNS
2008/11/26
  Configure DNS as as Slave Server. It's easy to set up it. Following example shows an environment that master DNS is "ns.srv.world", Slave DNS is "ns.example.info".

[1] Write config in Zone file on Master DNS.
[root@ns ~]#
vi /var/named/srv.world.wan


$TTL 86400
@
IN
SOA
ns.srv.world. root.srv.world. (

2007041501
;Serial

3600
;Refresh

1800
;Retry

604800
;Expire

86400
;Minimum TTL

)
IN
NS
ns.srv.world.

IN
NS
ns.example.info.

IN
A
172.16.0.82

IN
MX 10
ns.srv.world.


ns
IN
A
172.16.0.82


[root@ns ~]#
rndc reload

server reload successful
[2] Config on Slave DNS.
[root@ns ~]#
vi /etc/named.conf


# add these lines below

zone "srv.world" IN {

type slave;

masters { 172.16.0.82; };

file "slaves/srv.world.wan";

};


[root@ns ~]#
rndc reload

server reload successful
[root@ns ~]#
ls /var/named/slaves

srv.world.wan
# zone file in master DNS has been just transfered
Matched Content