Install and Configure Secondary (Slave) BIND DNS Server – RHEL 6 – CentOS 6

Secondary (Slave) BIND DNS Server – RHEL 6 – CentOS 6After we have installed BIND as a master DNS server (centos01) (as explained in my recent video), we can now set up a secondary DNS server (centos02) with BIND on CentOS. centos02 acts as a backup if there are problems with centos01.

This tutorial will show you how to setup and configure Secondary (Slave) BIND DNS Server on RHEL 6.x or CentOS 6.x

Note: centos01.linuxlab.local is Primary (Master) DNS server for linuxlab.local domain

We’ll make centos02.linuxlab.local ( 192.168.0.22) as secondary dns server for linuxlab.local domain

Steps:

1. Define centos02 as Name Server in the primary zone

2. Install bind on other server

3. Configure /etc/named.conf on centos02 (secondary dns server)

4. Allow zone transfer to only our secondary dns server in primary dns server
allow-transfer { 192.168.0.22; };

5. start dns server service on secondary server
service named start

6. Add A record to primary server and test the zone transfer

7. Enable named service on secondary dns server
chkconfig named on

centos02 is now running as secondary (slave) dns server for linuxlab.local domain. Hope you found it informative and useful. Any questions or comments are welcomed.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.