1.安裝服務
#yum update –y
#yum install bind –y
#systemctl start named 開啟服務named
#systemctl enable named 開機運行服務named
2.開放防火墻53端口,和dns服務
# firewall-cmd --permanent --add-port=53/tcp
# firewall-cmd --permanent --add-port=53/udp
# firewall-cmd --permanent
--add-service=dns
# firewall-cmd –reload
3.修改named.conf ,綠色橢圓中內容
#vim
/etc/named.conf
4.重啟服務
# systemctl restart named
5.客戶端使用方法:
Windows dns指向new dns,cmd執行: Ipconfig /flushdns