pdns 错误解决[备忘]
生活随笔
收集整理的這篇文章主要介紹了
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.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 consumedbind (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 | +----+-----------+---------------------+------+------------------------------------------------------------+------+------+-------------+----------+-----------+------+總結
以上是生活随笔為你收集整理的pdns 错误解决[备忘]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [AX2012]发送广播邮件
- 下一篇: [原创]Java性能优化权威指南读书思维