vim /etc/named.conf
vim /etc/named.rfc1912.zones
[root@server ~]# cd /var/named
[root@server named]# cp -a named.localhost openlab.com.zone
[root@server named]# vim openlab.com.zone
[root@server named]# systemctl restart named
测试
反向:
root@server ~]# cd /var/named
[root@server named]# cp -a named.loopback 192.168.48.arpa
[root@server named]# vim 192.168.48.arpa
[root@server named]# systemctl restart named
测试