centos7.6 dns排错——Host xxxx not found: 2(SERVFAIL)

[root@localhost named]# host www.kgc.com
Host www.kgc.com not found: 2(SERVFAIL)
[root@localhost named]# vim /var/log/messages 
[root@localhost named]# chmod 640 kgc.com.zone 
[root@localhost named]# chgrp named kgc.com.zone 
[root@localhost named]# systemctl restart named
[root@localhost named]# host www.kgc.com
www.kgc.com has address 14.0.0.14

Host xxxx not found: 2(SERVFAIL)

1、搭建DNS错误:Host xxxx not found: 2(SERVFAIL)

2、错误原因:

kgc.com.zone域文件权限不对

3、解决措施:

chmod 640 kgc.com.zone

chgrp named kgc.com.zone

你可能感兴趣的:(Linux-故障解决)