linux[Base]-33-[dns Server]-[master-slave domain name server]-[02]

Source: Internet
Author: User
Tags domain name server

Dns_bind_ master-slave domain name server

In a real network environment, a primary server often does not meet all user needs, from the server can crawl the specified zone data files from the primary server, play the role of backup and load balancing

Configuration process:

    1. Allow the update request from the server in the zone information file of the primary server and reload the configuration file
    2. Fill in the primary server address with the zone information to crawl from the server and reload the configuration file
    3. View the/var/named/slaves directory from the server or the utility nslookup authentication

Lab Environment:

Master: ns1.dns.com Rhel7 ip:192.168.200.102

From: ns2.dns.com centos7 ip:192.168.200.103

To modify the zone profile for the primary server:

allow-update {The address where the zone information is allowed to be updated;};

[Email protected] named]# vim/etc/Named.rfc1912.zones Zone"dns.com"In {type master; File"Dns.com.zone"; allow-update {192.168.200.103; };   }; Zone"200.168.192.in-addr.arpa"In {type master; File"192.168.200.arpa"; allow-update {192.168.200.103; }; };

Modify the listener address of the master profile "/etc/named.conf" from the server and allow the query address to any,

To modify a zone file:

[Email protected] yum.repos.d]# vim/etc/Named.rfc1912.zones Zone"dns.com"In {type slave; Masters {192.168.200.102; }; File"Slaves/slave.dns.com.zone";   }; Zone"200.168.192.in-addr.arpa"{type slave; Masters {192.168.200.102; }; File"Slaves/slave.192.168.200.arpa"; };

Add to boot start item check results:

[email protected] yum.repos.d]# systemctl enable named Ln-S'/usr/lib/systemd/system/named.service' '/etc/systemd/system/multi-user.target.wants/named.service'[email protected] yum.repos.d]# systemctl restart Named[[email protected] yum.repos.d]# ll/var/named/slaves/ Total8-rw-r--r--.1Named named432Oct -  A: toSlave.192.168. $. arpa-rw-r--r--.1Named named297Oct -  A: toSlave.dns.com.zone

linux[Base]-33-[dns Server]-[master-slave domain name server]-[02]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.