In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Forward DNS resolution
1. Install the bind package
[root@localhost ~]# yum install bind -y Software installation using yum repository
2. View the bind software configuration file information and enter the main file configuration.
[root@localhost ~]# rpm -qc bind View the software configuration file information [root @ localhost ~]#vim/etc/named. conf Enter the main file for configuration
3. Change the original listening address to the IP address of the local host (192.168.109.133) in the main file configuration, and change the "localhost" in the permission to any, authorizing everyone to access.
4. Enter the zone configuration file (/etc/named.rfc1912.zones) to configure a single zone.
[root@localhost ~]# vim /etc/named.rfc1912.zones Go to Zone Profile Configuration
5, switch to/var/named directory copy a template bit kgc data configuration file and edit
[root@ localhost ~]#cd/var/named/Switch to/var/named directory [root @ localhost named]#cp-p named. localhost www.example.com Copy module bit kgc.com.zone file [root @ localhost named]#vim kgc.com.zone be configured
6. Turn off the firewall and check the DNS service port open.
[root@ localhost named]#systemctl stop firewall. service Close firewall [root @ localhost named]#setenforce 0 [root @ localhost named]#systemctl start named Start named service [root @ localhost named]#netstat-nuap Check DNS service port open
7, Add DNS resolution server address to/etc/resolv. conf, Enter the domain name for forward resolution
[root@ localhost named]#echo "nameserver www.example.com">/etc/resolv. conf Add DNS resolution service address
Reverse DNS resolution
1. Enter the zone configuration file (/etc/named.rfc1912.zones) to configure
[root@localhost named]# vim /etc/named.rfc1912.zones Go to Zone Profile Configuration
2. Configuration data profile (yun. com. local)
[root@ localhost named]#cp-p www.example.com yun. com. local Replication data profile is yun [root @ localhost named]#lsdata dynamic www.example.com named. empty named. localhost named. loopback slaves yun. com. local [root @ localhost named]#vim yun. com. local Configuration data profile
3. Restart named resolution service and perform reverse resolution
(3) Master-slave replication (dual hot standby) Start another Linux system as a slave server
1, Install bind package (from server)
[root@ localhost ~]#yum install bind-y Software installation using yum repository
2. Go to the master configuration file/etc/named. conf (slave server)
2. Enter the zone configuration file/etc/named.rfc1912.zones (from the server)
3. Modify/etc/named.rfc1912.zones in the zone configuration file of the primary DNS server (primary server)
4. Restart the named service on the master server, turn off the firewall on the slave server and start the named service.
5, domain name resolution with the slave server, the same as the master server can resolve
Thanks for reading!!
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.