一.准备工作
bash
#关闭防火墙和selinux,或者允许服务通过
[root@node ~]# nmcli c mod ens32 ipv4.method manual ipv4.address 192.168.32.133/24 ipv4.gateway 192.168.32.2 ipv4.dns 192.168.32.132
[root@node ~]# nmcli c reload
[root@node ~]# nmcli c up ens32
[root@node ~]# nmcli c mod ens32 ipv4.method manual ipv4.address 192.168.32.132/24 ipv4.gateway 192.168.32.2 ipv4.dns 114.114.114.114
[root@node ~]# nmcli c reload
[root@node ~]# nmcli c up ens32
[root@node ~ ]# yum install bind -y
[root@Server ~ ]# yum install bind -y
二.配置配置文件
bash
[root@server ~]# vim /etc/named.conf
[root@server ~]# vim /etc/named.rfc1912.zones
[root@server ~]# cd /var/named
[root@server named]# cp -a named.localhost openlab.com.zone
[root@server named]# cp -a named.loopback 192.168.32.arpa
[root@server named]# vim openlab.com.zone
[root@server named]# vim 192.168.32.arpa
[root@server named]# systemctl restart named