所有服务器:关闭防火墙和安全机制
iptables -F
systemctl stop firewalld
setenforce 0
配置yum源
[[email protected] ~]# mkdir /media/cdrom
[[email protected] ~]# mount /dev/cdrom /media/cdrom
[[email protected] ~]# cd /etc/yum.r*
[[email protected] yum.repos.d]# mv C* a/
[[email protected] yum.repos.d]# vim ./local.repo
[cdrom]
name=cdrom
baseurl=file:///media/
enabled=1
gpgcheck=0
[[email protected] yum.repos.d]# yum -y clean all
主服务器的配置:
[[email protected] ~]# yum -y install bind
[[email protected] ~]# vim /etc/resolv.conf
[[email protected] ~]# vim /etc/hosts
[[email protected] ~]# vim /etc/named.conf
[[email protected] ~]# vim /var/named/crushlinux.zheng
[[email protected] ~]# cp /var/named/crushlinux.zheng /var/named/crushlinux.fan
[[email protected] ~]# vim /var/named/crushlinux.fan
[[email protected] ~]# chown :named /var/named/crushlinux.*
[[email protected] ~]# named-checkconf -z /etc/named.conf
[[email protected] ~]# named-checkzone crushlinux.com /var/named/crushlinux.zheng
[[email protected] ~]# named-checkzone crushlinux.com /var/named/crushlinux.fan
[[email protected] ~]# systemctl restart named
从服务器配置:
[[email protected] ~]# yum -y install bind
[[email protected] ~]# cat /etc/resolv.conf
[[email protected] ~]# vim /etc/hosts
[[email protected] ~]# cat /etc/named.conf
[[email protected] ~]# systemctl restart named
原文地址:https://www.cnblogs.com/990624lty-jhc/p/11369197.html