首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在转发给Powerdns权威时,PowerDNS递归返回意外的SERVFAIL

在转发给Powerdns权威时,PowerDNS递归返回意外的SERVFAIL
EN

Server Fault用户
提问于 2021-03-18 09:18:27
回答 1查看 1.5K关注 0票数 0

我在不同的服务器上有Powerdns递归(4.4.2来自ubuntu )和PowerDNS权威(4.4.1来自ubuntu )。

Recursor配置:

代码语言:javascript
复制
allow-from-file=/etc/pwrdnsallowfrom.acl
any-to-tcp=yes
forward-zones-file=/etc/pwrdnsforwaders.conf
log-common-errors=yes
log-timestamp=yes
new-domain-log=yes
unique-response-log=yes
loglevel=3
logging-facility=0
disable-syslog=no
max-negative-ttl=1

/etc/pwrdnsforwaders.conf内容:

代码语言:javascript
复制
cat /etc/pwrdnsforwaders.conf
.=192.168.60.10

权威配置:

代码语言:javascript
复制
gmysql-host=localhost
gmysql-port=3306
gmysql-user=powerdns
gmysql-password=password
gmysql-dbname=powerdns
gmysql-dnssec
local-address=192.168.60.10
api=yes
api-key=apikey
allow-axfr-ips=127.0.0.1
allow-dnsupdate-from=127.0.0.1
allow-notify-from=127.0.0.1
disable-axfr=yes
any-to-tcp=yes
cache-ttl=60
master=yes
max-tcp-connections=20
non-local-bind=no

有时,递归将返回一个SERVFAIL,以响应一次又一次的查询请求。只有重新启动才有帮助:

代码语言:javascript
复制
systemctl restart pdns-recursor.service

当出现问题时,递归日志中没有什么异常:

代码语言:javascript
复制
Mar 18 09:09:54 pwrdnsrec pdns_recursor [5524]: 2 [1888/1] question for 'example.com | A' from 11.22.33.44:39530
Mar 18 09:09:54 pwrdnsrec pdns_recursor [5524]: 2 [1888/1] answer to non-rd question 'example.com | A': 1 answers, 0 additional, took 0 packets, 0 netw ms, 0 tot ms , 0 throttled, 0 timeouts, 0 tcp connections, rcode = 0

有什么问题吗?

EN

回答 1

Server Fault用户

发布于 2021-03-22 18:54:58

这些都是递归者和权威之间的网络问题。通过添加递归配置来解决这个问题:

代码语言:javascript
复制
  network timeout: 5000
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1057458

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档