In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. Environment
Centos7
Master: 192.168.3.173
From: 92.168.3.172
Second, all need to install bind service installation package
Configure the primary DNS server
Master: / etc/named.conf modification
Listen-on port 53 {any;}
Allow-query {any;}
Notify yes
Also-notify {192.168.3.172;}; # # write from DNS server address
#
Recursion yes
Dnssec-enable yes; these defaults are OK, do not need to change
Dnssec-validation yes
#
Add your zone file and mark it as the primary server
Zone "example.com" IN {
Type master
File "example.com"
}
Copy the zone file (main DNS)
Cd / var/named/
Cp-p named.localhost example.com
Note: each time you modify the master DNS configuration, you need to change the serial serial number, which must be larger than the slave server number.
Systemctl restart named
Systemctl enable named
Fourth, configure the slave DNS server
Cat / etc/named.conf
Zone "example.com" IN {
Type slave; is marked as from the DNS server
File "slaves/example.com"; add the zone file, this does not need to manually copy the file, it will generate its own, and open with vim will not be able to see the file.
Masters {192.168.3.173;}; # fill in the primary DNS server address
}
Systemctl restart named
Systemctl enable named
5. Testing
Lord:
Systemctl restart named
Systemctl stop named # stops the DNS main service and simulates the DNS server downmachine
View from: log
/ var/log/messages
Success ~
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.