DNS resolving 占用大量日志


公司内部DNS配置好后,测试解析正常,只是几乎每秒都有无法解析的日志产生。但分析日志时发现,每天的日志都有2G左右。日志中几乎全是类似
network unreachable resolving 'www.baidu.com/A/IN':2001:5023:c27::2:30#53

network unreachable resolving 'trafficconverter.biz/A/IN':192.203.230.10#53
之类的解析失败信息。


查资料得知,需要把ipv6的解析关闭:
/etc/sysconfig/named 中设置 OPTIONS="-4"
网卡也可以关闭ipv6:
/etc/sysconfig/network 中 设置 NETWORKING_IPV6=no

按照如上操作,重启named,日志信息中看不到ipv6的解析了,但是每秒仍有ipv4的无法解析的日志产生。继续查资料得知,应该与默认开启了recursion有关。于是在named.conf中显示关闭recursion
recursion no;
重启named,无法解析的日志信息消失了。


I'd guess you're allowing recursion, and people are using you as an 'open recursive' name server. If that is not by design, I would recommend you disable recursion, or at least restrict it to your LAN.
(参见: http://ubuntuforums.org/showthread.php?t=1717639)

 

你可能感兴趣的:(dns)