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:
- Allow the update request from the server in the zone information file of the primary server and reload the configuration file
- Fill in the primary server address with the zone information to crawl from the server and reload the configuration file
- 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]