利用 powerdns 自建权威 DNS 和递归 DNS 遇到的问题,求助!..

2017-04-17 20:06:10 +08:00
 mrco

配置和报错:

pdns.conf

launch=gmysql
gmysql-host=127.0.0.1
gmysql-user=*********
gmysql-dbname=pdns
gmysql-password=*******
webserver=yes
webserver-address=127.0.0.1
webserver-allow-from=127.0.0.1
webserver-port=8081
api=yes
api-key=********
api-logfile=/var/log/pdns-api.log
config-dir=/etc/pdns
include-dir=/etc/pdns/pdns.d
guardian=yes
local-address=0.0.0.0
security-poll-suffix=
setgid=pdns
setuid=pdns
default-soa-name=ns1.***.com
default-soa-edit=INCEPTION-INCREMENT
default-soa-mail=hostmaster.***.com
default-ttl=600
daemon=yes
disable-axfr=no
distributor-threads=10
max-cache-entries=1000000
max-queue-length=5000
max-tcp-connections=10000
recursor=127.0.0.1:5300
allow-recursion=10.28.0.0/16
retrieval-threads=10
reuseport=yes
server-id=ns1.***.com

recursor.conf

setuid=pdns-recursor
setgid=pdns-recursor
forward-zones=.=223.5.5.5;114.114.114.114
local-address=0.0.0.0
local-port=5300

报错:

Apr 17 19:20:01 base3 pdns_server: Apr 17 19:20:01 Recursive query for remote 10.28.70.100:16733 with internal id 2 was not answered by backend within timeout, reusing id
Apr 17 19:20:04 base3 pdns_server: Apr 17 19:20:04 Recursive query for remote 10.28.80.11:49570 with internal id 3 was not answered by backend within timeout, reusing id
Apr 17 19:20:04 base3 pdns_server: Apr 17 19:20:04 Recursive query for remote 10.28.70.100:59774 with internal id 15 was not answered by backend within timeout, reusing id
Apr 17 19:20:06 base3 pdns_server: Apr 17 19:20:06 Recursive query for remote 10.28.43.11:27463 with internal id 4 was not answered by backend within timeout, reusing id
5570 次点击
所在节点    问与答
4 条回复
AstroProfundis
2017-04-17 20:44:34 +08:00
直接往本机 5300 查询有结果吗
mrco
2017-04-17 20:45:56 +08:00
@AstroProfundis 可以的,也就是说 backend 的功能是正常的,但是 pdns 在将受到的递归查询转发到后端这期间,timeout 了,,,,
itsjoke
2017-04-17 21:22:38 +08:00
递归会受到国际网络因素影响
mrco
2017-04-18 08:27:40 +08:00
@itsjoke 我指定的 223.5.5.5 和 114.114.114.114 啊,这应该是国内最快的 DNS 了吧..
网卡上指定这 2 个 DNS 都一点问题都没有,只是通过 pdns 指定后端递归 DNS 服务器的时候 就会时不时出现上面的报错了,然后递归就不能用了.

我认为是 pdns 自己的问题.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/355467

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX