問題現象:
搭建了DNS服務器后,訪問被拒絕
[root@localhost opt]# nslookup www.wangzy.com ;; Got SERVFAIL reply from 192.168.43.12, trying next server ;; connection timed out; trying next origin ;; Got SERVFAIL reply from 192.168.43.12, trying next server ;; connection timed out; no servers could be reached
原因:書寫數據配置文件時,默認給與的配置文件權限不對
解決辦法:
添加對應權限,重啟服務器
再次訪問成功: