主服务器:
#yum install bind -y
#mount /dev/sr0/ mnt
#systemctl stop firewalld
#setenforce 0
#vim /etc/named.conf
#cp /var/named/named.localhost /var/named/named.qq.com
#vim /var/named/named.qq.com
#systemctl restart named
#chmod o+r /var/named/named.qq.com
#systemctl restart named
测试:#nslookup
> server 172.168.8.129 解析
>www.qq.com 解析
在vim /etc、named.conf
allow-transfer { 从DNS服务器IP }
systemctl restart named
从服务器:
#yum install bind -y
#mount /dev/sr0/ mnt
#systemctl stop firewalld
#setenforce 0
#vim /etc/named.conf
#systemctl restart named
#ll /var/named/
#vim /var/named/named.qq
#nslookup
>server 172.24.8.128
>www.qq.com
>aaa.qq.com