Ubuntu 10.04
Sponsored Link

Configure as a Slave Server
2010/07/19
  Configure DNS as as Slave Server. It's easy to set up it.

Following example shows an environment that master DNS is "172.16.0.82", Slave DNS is "slave.example.host".

[1] Write config in Zone file on Slave DNS.
root@slave:~#
vi /etc/bind/named.conf.external-zones


# add these lines below

zone "srv.world" {

type slave;

masters { 172.16.0.82; };

file "slaves/srv.world.wan";

};


root@slave:~#
mkdir /etc/bind/slaves

root@slave:~#
chown bind. /etc/bind/slaves

root@slave:~#
rndc reload

server reload successful
root@slave:~#
ls /etc/bind/slaves

srv.world.wan
# zone file in master DNS has been just transfered
[2] If zone files is not transfered normally, AppArmor may causes it. Then, change the settings of AppArmor.
root@slave:~#
vi /etc/apparmor.d/usr.sbin.named


# /etc/bind should be read-only for bind
# /var/lib/bind is for dynamically updated zone (and journal) files.
# /var/cache/bind is for slave/stub data, since we're not the origin of it.
# See /usr/share/doc/bind9/README.Debian.gz
# near line 20: add

/etc/bind/** r,
/etc/bind/slaves/** rw,

/var/lib/bind/** rw,
/var/lib/bind/ rw,
/var/cache/bind/** rw,
/var/cache/bind/ rw,
root@slave:~#
/etc/init.d/apparmor restart

  * Reloading AppArmor profiles
[ OK ]
Matched Content
 
Tweet