Wednesday, April 16 2025

Configuring Alternate DNS Server


Although this name server receives its namespace information from a master
Name server, this Name server type can answer queries for which it has authority. Used for load balancing and redundancy.

Prerequisite for Alternate DNS Server (SDNS)
Ø  Yum process.
Ø  IP setting with PDNS Address.
Ø  Hostname set.
Ø  IP tables Flash.
Ø  Hosts profile update and PDNS Profile entry.
Ø  Primary DNS servers host files - SDNS Profiles entry.
Ø  Primary DNS server’s resolv.conf files - SDNS IP entry.
Ø  Checking PDNS with ping domain name

Setting up BIND
Step-1.1:  Install the required packages for BIND:
               # yum â–¡ install â–¡ bind*

 Step-1.2:   Verify that packages have been installed.
              # rpm â–¡ –qa â–¡ bind*
Setting up CACHING
Step-2.1:  Install the required package for CACHING.
                # yum â–¡ install â–¡ caching*

Step-2.2:   Verify that packages have been installed.
                # rpm â–¡ -qa â–¡ caching*

Note:  There are also a handful of configure files:
/etc/resolv.conf
            [ This file contain resolve information ]
/etc/named.caching-nameserver.conf
            [This file contain name server caching information]
/etc/named.rfc1912.zones
[This file contain forward lookup zone and reveres lookup zone files.]

Step-3: Edit resolv.conf file for set name space and name server IP.
            # vi â–¡ /etc/resolv.conf
 








Step-4:  Edit named.rfc1912.zones file for declare Zone file and Domain name.
# vi â–¡ /etc/named.rfc1912.zones
 




 Step-5:   Open named.caching-nameserver.conf file for declare Access Control List (ACL).
            # vi â–¡ /etc/named.caching-nameserver.conf
 




Step-6: Enable the service to start during boot:
               # chkconfig â–¡ named â–¡ on
                                    Or
               # ntsysv

Step-7: Restart named service for DNS with Firewall and SELinux.
# service â–¡ network â–¡ restart
            # service â–¡ portmap â–¡ restart
            # iptables â–¡ –F
            # service â–¡ iptables â–¡ save
            # service â–¡ named â–¡ restart

Step-8: Verify that the Alternate Name Server…
             # ls â–¡ /var/named/chroot/var/named/slaves 
[If SDNS is okay then two new file the slave’s directory]
           
# dig â–¡ -x â–¡ 192.168.1.200                                                                 [ SDNS IP Address]
            # dig â–¡ sandwip.com                                                                         [Domain name]
            # host â–¡ sandwip.com                                                                       [Domain name]
            # ping â–¡ sandwip.com





[The End Alternate Domain Name Server Configure]

No comments:

Learner24. Powered by Blogger.