Secondary DNS Server in CentOS 6
Please consult this article to check how the primary DNS Server is configured in chroot environment. A secondary DNS Server is used as a backup DNS Server in case the primary fails. The configuration is almost identical. Here are the details: Domain: testdom.inv Primary: ns1.testdom.inv (192.168.1.13) Secondary: ns2.testdom.inv (192.168.1.14) Secondary DNS Server Phase1: Again, the host names must be properly specified. We have to modify the following lines in the mentioned files - [root@centu ~]# vim /etc/sysconfig/network HOSTNAME=ns2.testdom.inv [root@ns2 ~]# vim /etc/hosts 192.168.1.14 ns2.testdom.inv ns2 Finally, we set the resolver IP to the primary DNS Server [root@ns2 ~]# vim /etc/resolv.conf nameserver 192.168.1.13 nameserver 192.168.1.14 Phase 2: Now we set up necessary packages - [root@ns2 ~]# yum install bind bind-chroot Loaded plugins: fastestmirror, presto Determining fastest mirrors Setting up Install Process Resol