3.部署DNS_view视图
实验拓扑图
3.1更改主机名
DNS服务器
hostnamectl set-hostname DNSserver
客户端1
hostnamectl set-hostname client1
客户端2
hostnamectl set-hostname client2
3.2配置网卡
DNS服务器
ifconfig ens33:0 10.1.1.161 netmask 255.255.255.0
ifconfig ens33:1 192.168.1.161 netmask 255.255.255.0
客户端1
ifconfig ens33:0 10.1.1.162 netmask 255.255.255.0
客户端2
ifconfig ens33:0 192.168.1.163 netmask 255.255.255.0
3.3DNS服务器类配置
vi /etc/named.conf
acl internal {
10.1.1.0/24;
127.0.0.0/8;
};
acl external {
192.168.1.0/24;
};
options { #options默认已有,