pdns 错误解决[备忘]

简介: 参见日志: pdns (master) server  /var/log/messages 错误信息提示: Jan 30 10:08:08 kylezhuang-hh-qa-dns-crguy pdns[6363]: AXFR of domain '199.10.in-addr.arpa' initiated by 10.199.132.168Jan 30 10:08:08 ky

参见日志:


pdns (master) server  /var/log/messages 错误信息提示:

Jan 30 10:08:08 kylezhuang-hh-qa-dns-crguy pdns[6363]: AXFR of domain '199.10.in-addr.arpa' initiated by 10.199.132.168
Jan 30 10:08:08 kylezhuang-hh-qa-dns-crguy pdns[6363]: AXFR of domain '199.10.in-addr.arpa' allowed: client IP 10.199.132.168 is in allow-axfr-ips
Jan 30 10:08:08 kylezhuang-hh-qa-dns-crguy pdns[6363]: Exception: All data was not consumed
Jan 30 10:08:08 kylezhuang-hh-qa-dns-crguy pdns[6363]: TCP Connection Thread died because of STL error: All data was not consumed
Jan 30 10:08:28 kylezhuang-hh-qa-dns-crguy pdns[6363]: AXFR of domain '199.10.in-addr.arpa' initiated by 10.199.132.168
.....
Jan 30 09:59:06 kylezhuang-hh-qa-dns-crguy pdns[23658]: AXFR of domain '199.10.in-addr.arpa' allowed: client IP 10.199.132.168 is in allow-axfr-ips
Jan 30 09:59:06 kylezhuang-hh-qa-dns-crguy pdns[23658]: Exception: All data was not consumed
Jan 30 09:59:06 kylezhuang-hh-qa-dns-crguy pdns[23658]: TCP Connection Thread died because of STL error: All data was not consumed


bind (slave) server /var/log/messages 错误信息提示:

Jan 30 03:45:48 hh-yun-puppet-129021 named[100639]: transfer of '199.10.in-addr.arpa/IN' from 10.199.132.152#53: connected using 10.199.129.21#60474
Jan 30 03:45:48 hh-yun-puppet-129021 named[100639]: transfer of '199.10.in-addr.arpa/IN' from 10.199.132.152#53: failed while receiving responses: end of file
Jan 30 03:45:48 hh-yun-puppet-129021 named[100639]: transfer of '199.10.in-addr.arpa/IN' from 10.199.132.152#53: Transfer completed: 23 messages, 2201 records, 96020 bytes, 0.027 secs (3556296 bytes/sec)


原因: master 服务器上具有不合法的语法解析, 导致 bind 无法主从同步获取完整的数据信息

解决方法,  检测主服务器数据库上的  records 表中 name 与 content 字段, 细心找到不合法的字段, 然后修复则可解决.

如:

mysql> select * from records where name='21.130.199.10.in-addr.arpa';   (不符合规范语法, 不知道谁埋的雷)
+----+-----------+----------------------------+------+---------------------------------------------------------------------------------+------+------+-------------+----------+-----------+------+
| id | domain_id | name                       | type | content                                                                         | ttl  | prio | change_date | disabled | ordername | auth |
+----+-----------+----------------------------+------+---------------------------------------------------------------------------------+------+------+-------------+----------+-----------+------+
|  4 |         2 | 21.130.199.10.in-addr.arpa | PTR  | pdns.199.10.in-addr.arpa admin.pdns.199.10.in-addr.arpa 7 1200 7200 64800 86400 |  360 | NULL |        NULL |        0 | NULL      |    1 |
+----+-----------+----------------------------+------+---------------------------------------------------------------------------------+------+------+-------------+----------+-----------+------+
1 row in set (0.00 sec)

mysql> delete from records where id=4;
Query OK, 1 row affected (0.00 sec)

mysql> select * from records where type='SOA' and domain_id=2;  (正确语法参考)
+----+-----------+---------------------+------+------------------------------------------------------------+------+------+-------------+----------+-----------+------+
| id | domain_id | name                | type | content                                                    | ttl  | prio | change_date | disabled | ordername | auth |
+----+-----------+---------------------+------+------------------------------------------------------------+------+------+-------------+----------+-----------+------+
|  2 |         2 | 199.10.in-addr.arpa | SOA  | dns.vclound.com admin.pdns.vclound.com 555 1200 7200 64800 |  360 | NULL |        NULL |        0 | NULL      |    1 |
+----+-----------+---------------------+------+------------------------------------------------------------+------+------+-------------+----------+-----------+------+




目录
相关文章
|
JavaScript
24avalon - 指令ms-for(循环绑定)
24avalon - 指令ms-for(循环绑定)
126 0
|
关系型数据库 块存储
ceph 故障分析(backfill_toofull)
在执行了 ceph 扩容之前, 发现长时间内都具有下面的状态存在 参考下面信息 # ceph -s cluster dc4f91c1-8792-4948-b68f-2fcea75f53b9 health HEALTH_WARN 13 pgs backfill_toofull; 1 pgs degraded; 1 pgs stuck degraded
7563 0
BOSHIDA DC电源模块保护内外部电路至关重要
三河博电科技 BOSHIDA DC电源模块保护内外部电路至关重要 DC电源模块是现代电路设计中经常使用的设备,它能够将交流电转化成为直流电并提供给电路中的各种电子设备使用。在现代电子设备中,大部分都需要稳定可靠的直流电源才能正常工作。然而,如果DC电源模块出现故障,将会对设备和使用者造成不可估量的危害。因此,保证DC电源模块的安全使用非常重要。
BOSHIDA DC电源模块保护内外部电路至关重要
|
监控 供应链 搜索推荐
淘宝 1688 京东商品详情数据场景,自营商城上货,价格监控,竞品分析等
淘宝、1688、京东商品详情数据在各自的电商平台上具有广泛的应用场景,自营商城上货、价格监控以及竞品分析则是电商领域的关键环节。这些要素共同构成了电商运营的完整链条,为商家提供了丰富的数据支持和策略选择。
|
存储 运维 Oracle
Oracle系列十八:Oracle RAC
Oracle系列十八:Oracle RAC
3108 0
ping 返回 no buffer space available 解决方法
1. 云主机当前常规并发比较大,  约有 1900 个常规连接 [root@chao-data07 ~]# netstat -nt | grep EST | wc -l 1867 2. 当前出现 arp 表不正常现象 见到下面错误信息 Mar 24 14:06:31 chao-data07 dhclient[1112]: DHCPREQUEST on eth0 to 10.
5257 0
|
Web App开发 关系型数据库 MySQL
namedmanager 一个用户管理 bind 的 web gui
namedmanager 作用 使用新的 Amberphplib 框架,兼容 MySQL 5.6 STRICT SQL模式 是一个基于 Web 的 DNS 管理系统,可用来添加、调整和删除 DNS 的 zones/records 数据,支持 Bind 作为后端的 DNS 服务,支持 IPv4 和 IPv6.   namedmanager 软件安装方法   下载仓库地址 wge
3998 0
|
机器学习/深度学习 索引 Cloud Native
【刷题日记】503. 下一个更大元素 II
【刷题日记】503. 下一个更大元素 II
244 0
|
数据采集 安全 机器人
RPA实施路线图的长远考虑
自动化仍然是增长最快的企业软件类别之一,研究机构Gartner公司在最近发布的一份报告中预计,全球RPA软件收入将比去年增长近20%。
307 0
RPA实施路线图的长远考虑
java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded