named[xxx]: FORMERR resolvin错误解决办法

 
查 /var/log/messages会 发现一大堆关于DNS启动过程中的错误,常??到下列??的?息:
Jul 25 15:44:04 localhost named[2806]: FORMERR resolving 'ns-tel2.qq.com/AAAA/IN': 121.14.73.115#53
Jul 25 15:44:04 localhost named[2806]: FORMERR resolving 'ns-tel1.qq.com/AAAA/IN': 218.30.72.180#53
Jul 25 15:44:04 localhost named[2806]: FORMERR resolving 'ns-tel2.qq.com/AAAA/IN': 218.30.72.180#53
Jul 25 15:44:04 localhost named[2806]: FORMERR resolving 'ns-tel1.qq.com/AAAA/IN': 222.73.76.226#53
Jul 25 15:44:04 localhost named[2806]: FORMERR resolving 'ns-tel2.qq.com/AAAA/IN': 222.73.76.226#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel1.qq.com/AAAA/IN': 121.14.73.115#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel2.qq.com/AAAA/IN': 121.14.73.115#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel2.qq.com/AAAA/IN': 222.73.76.226#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel1.qq.com/AAAA/IN': 222.73.76.226#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel2.qq.com/AAAA/IN': 219.133.60.6#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel1.qq.com/AAAA/IN': 219.133.60.6#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel2.qq.com/AAAA/IN': 218.30.72.180#53
Jul 25 15:44:05 localhost named[2806]: FORMERR resolving 'ns-tel1.qq.com/AAAA/IN': 218.30.72.180#53
即:“AAAA" 或者"2001:500:f::1",这就是IPV6,通 常又不只一次,多了就会影响DNS查询的时间了,进而降低效能

 
原因: 启用了ipv6,而又找不到ipv6的地址,造成错误!去除ipv6的支持!
2、解决方法

第一种:直接编译配 置文件/etc/sysconfig/named,去除去IPv6的解析,只解析IPv4(这种方法方便,呵呵)
OPTIONS="whatever" 改为  OPTIONS="-4",注意OPTIONS选项的值可以是:whatever、-4、-6中的一个

第二种:禁用IPv6 也是可以的
(1)编辑配置文件/etc/sysconfig/network,然后 将NETWORKING_IPV6=YES改为NETWORKING=no
(2)关闭ip6tables这个服务
(3)向/etc/modprobe.conf文件中,添加
alias ipv6 off 
alias net-pf-10 off

完成之后,如果不行就重启吧!

转载于:https://my.oschina.net/u/2316994/blog/376918

中文名: DNS and BIND on IPv6 (第1版) 原名: DNS and BIND on IPv6, 1st edition 作者: Cricket Liu 资源格式: PDF 版本: 英文文字版 出版社: O'Reilly书号: 978-1449305192发行时间: 2011年05月27日 地区: 美国 语言: 英文 简介: 内容介绍: If you're preparing to roll out IPv6 on your network, this concise book provides the essentials you need to support this protocol with DNS. You'll learn how DNS was extended to accommodate IPv6 addresses, and how you can configure a BIND name server to run on the network. This book also features methods for troubleshooting problems with IPv6 forward- and reverse-mapping, techniques for helping islands of IPv6 clients communicate with IPv4 resources, and many other topics. 作者介绍: Cricket Liu Cricket Liu graduated from the University of California, Berkeley, that great bastion of free speech, unencumbered Unix, and cheap pizza. He joined Hewlett-Packard after graduation and worked for HP for nine years. Cricket began managing the hp.com zone after the Loma Prieta earthquake forcibly transferred the zone's management from HP Labs to HP's Corporate Offices (by cracking a sprinkler main and flooding a Labs computer room). Cricket was hostmaster@hp.com for over three years, and then joined HP's Professional Services Organization to co-found HP's Internet Consulting Program. Cricket left HP in 1997 to form Acme Byte & Wire, a DNS consulting and training company, with his friend Matt Larson. Network Solutions acquired Acme in June 2000, and later the same day merged with VeriSign. Cricket worked for a year as Director of DNS Product Management for VeriSign Global Registry Services. Cricket joined Infoblox, a company that develops DNS and DHCP appliances, in March, 2003. He is currently their Vice President of Architecture. Cricket, his wife, Paige, their son, Walt, and daughter, Greta, live in California with their two Siberian Huskies, Annie and Dakota. 目录: Chapter 1 DNS and IPv6 Chapter 2 BIND on IPv6 Chapter 3 Resolver Configuration Chapter 4 DNS64 Chapter 5 Troubleshooting
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值