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

猜你喜欢

转载自blog.csdn.net/weixin_42099301/article/details/107350221