要求
正向解析
客户端
服务端
[root@server ~]# vim /etc/named.conf
[root@server ~]# vim /etc/named.rfc1912.zones
客户机
[root@localhost ~]# vim /etc/NetworkManager/system-connections/ens33.nmconnection
测试
反向解析
[root@server named]# vim /etc/named.rfc1912.zones
zone "openlab.com" IN {
type master;
file "openlab.com.zone";
allow-update { none; };
};
zone "121.168.192.in-addr.arpa" IN {
type master;
file "192.168.168.arpa";
allow-update { none; };
};
服务端
[root@server ~]# cd /var/named
[root@server named]# cp -a named.loopback 192.168.168.arpa
[root@server named]# vim 192.168.168.arpa
[root@server named]# systemctl restart named
最后测试用nslookup