博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pdns 错误解决[备忘]
阅读量:4078 次
发布时间:2019-05-25

本文共 3773 字,大约阅读时间需要 12 分钟。

参见日志:

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 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-ipsJan 30 10:08:08 kylezhuang-hh-qa-dns-crguy pdns[6363]: Exception: All data was not consumedJan 30 10:08:08 kylezhuang-hh-qa-dns-crguy pdns[6363]: TCP Connection Thread died because of STL error: All data was not consumedJan 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-ipsJan 30 09:59:06 kylezhuang-hh-qa-dns-crguy pdns[23658]: Exception: All data was not consumedJan 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#60474Jan 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 fileJan 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 |+----+-----------+---------------------+------+------------------------------------------------------------+------+------+-------------+----------+-----------+------+



转载地址:http://conni.baihongyu.com/

你可能感兴趣的文章
【数据结构周周练】003顺序栈与链栈
查看>>
C++类、结构体、函数、变量等命名规则详解
查看>>
C++ goto语句详解
查看>>
【数据结构周周练】008 二叉树的链式创建及测试
查看>>
《软件体系结构》 第九章 软件体系结构评估
查看>>
《软件体系结构》 第十章 软件产品线体系结构
查看>>
《软件过程管理》 第六章 软件过程的项目管理
查看>>
《软件过程管理》 第九章 软件过程的评估和改进
查看>>
分治法 动态规划法 贪心法 回溯法 小结
查看>>
《软件体系结构》 练习题
查看>>
《数据库系统概论》 第一章 绪论
查看>>
《数据库系统概论》 第二章 关系数据库
查看>>
《数据库系统概论》 第三章 关系数据库标准语言SQL
查看>>
SQL语句(二)查询语句
查看>>
SQL语句(六) 自主存取控制
查看>>
《计算机网络》第五章 运输层 ——TCP和UDP 可靠传输原理 TCP流量控制 拥塞控制 连接管理
查看>>
堆排序完整版,含注释
查看>>
二叉树深度优先遍历和广度优先遍历
查看>>
生产者消费者模型,循环队列实现
查看>>
PostgreSQL代码分析,查询优化部分,process_duplicate_ors
查看>>