DNS 问题解决 Host xxx.xxx.xxx.xxx not found :2(SERVFAIL)

    技术2022-05-13  19

     在linux 下安装完成Bind等相关组件后,对一些配置文件修改成功后: 运行: #host sip.helun.gz.net 若出现如下错误码: Host sip.helun.gz.net not found: 2(SERVFAIL) 在您确保配置正确的前题下,此时可以查看一下系统日志:

    # grep named /var/log/messages |tail -n 20

    Sep 16 21:46:11 XingLun named[3258]: zone 0.168.192.in-addr.arpa/IN: loading from master file helun.gz.net.arpa failed: permission denied Sep 16 21:46:11 XingLun named[3258]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: NS '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa' has no address records (A or AAAA) Sep 16 21:46:11 XingLun named[3258]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0 Sep 16 21:46:11 XingLun named[3258]: zone localhost.localdomain/IN: loaded serial 0 Sep 16 21:46:11 XingLun named[3258]: zone localhost/IN: loaded serial 0 Sep 16 21:46:11 XingLun named[3258]: zone helun.gz.net/IN: loading from master file helun.gz.net.zone failed: permission denied

    解决方案: #cd /var/named/chroot/var/named #chmod 777 * #service named restart #ping sip.helun.gz.net PING sip.helun.gz.net (192.168.0.200) 56(84) bytes of data. 64 bytes from sip.helun.gz.net (192.168.0.200): icmp_seq=1 ttl=64 time=0.124 ms 64 bytes from sip.helun.gz.net (192.168.0.200): icmp_seq=2 ttl=64 time=0.074 ms 64 bytes from sip.helun.gz.net (192.168.0.200): icmp_seq=3 ttl=64 time=0.116 ms 此时您的DNS已正确配置,可以正常运行。


    最新回复(0)