1. 程式人生 > >dns-centos7-搭建-問題彙總(檔案的許可權隸屬於named組才行)

dns-centos7-搭建-問題彙總(檔案的許可權隸屬於named組才行)

 

--問題:

[[email protected] network-scripts]# nslookup dns.lz.edu
;; connection timed out; no servers could be reached

原因:

問題是named.conf配置檔案的錯誤。需要修改服務堅挺埠,預設為localhost可修改為本機ip地址或any。listen-on port 53 { 192.168.1.132; };

 

 

 

 

 

 

 

[[email protected]

named]# systemctl restart named
[[email protected] named]# named-checkconf -z
zone lz.edu/IN: loaded serial 0
zone 1.168.192.in-addr.arpa/IN: loaded serial 1997022700

 

nslookup rac-cluster-scan.lz.edu
nslookup dns.lz.edu
host rac-cluster-scan.lz.edu
host dns.lz.edu