配置网卡
vim /etc/sysconfig/network-scripts/ifcfg-ens33
systemctl restart network
ifconfig
安装bind bind-chroot
yum -y install bind bind-chroot
更改配置文件
vim /etc/named.conf
vim /etc/named.rfc1912.zones
cd /var/named
cp -p named.localhost cui.com.zone
cp -p named.localhost 192.168.2.zone
vim cui.com.zone
vim 192.168.2.zone
检测
named-checkzone cui.com.zone 192.168.2.zone
关闭防火墙,降低沙盒等级,启动服务
systemctl restart named
systemctl stop firewalld
setenforce 0
安装bind-utils
yum -y install bind-utils
测试正反向解析