首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PowerDNS主从配置问题

PowerDNS主从配置问题
EN

Server Fault用户
提问于 2020-04-07 22:55:40
回答 1查看 4.2K关注 0票数 0

在我的2节点PowerDNS集群的主节点上,我在测试环境中查找要部署到生产im中的所有ins,在日志中获得以下错误:

代码语言:javascript
复制
Request to queue notification for domain 'domain.example' was processed, but no valid nameservers or ALSO-NOTIFYs found. Not notifying!

这与该域上的NS /A记录有关,只有我在此时找不到我必须做的事情,似乎我的配置是正确的。

主配置:

代码语言:javascript
复制
allow-axfr-ips=10.10.30.32
master=yes
slave=no

从配置:

代码语言:javascript
复制
allow-axfr-ips=10.10.30.31
master=no
slave=yes

在从节点上,我还在数据库中添加了以下记录:

代码语言:javascript
复制
MariaDB [powerdns]> select * from supermasters;
+-------------+--------------------+---------+
| ip          | nameserver         | account |
+-------------+--------------------+---------+
| 10.10.30.31 | ns2.domain.example | admin   |
+-------------+--------------------+---------+

我个人认为这与数据库有关,正如我在文档中看到的那样:

·必须将名称服务器正确地设置为NS域记录,即fi、N和A记录。·主/从状态必须以域表中的每个域为基础来引导fi。也就是说,类型列必须分别是主列或从列,从节点需要一个逗号分隔的主节点IP地址列表,该主节点地址位于域表的主列中。

但我就是不明白它想说什么。有什么主意吗?

编辑:

在我的从服务器上,域表中有一个错误的记录,导致从服务器向错误的服务器发送请求,如下所示:

代码语言:javascript
复制
Apr  8 08:56:03 hfr-nl-dns02 pdns_server[2582]: While checking domain freshness: Query to '10.10.30.32' for SOA of 'ns2.domain.example.' did not return a SOA
Apr  8 09:02:12 hfr-nl-dns02 pdns_server[2582]: message repeated 3 times: [ While checking domain freshness: Query to '10.10.30.32' for SOA of 'ns2.domain.example.' did not return a SOA]

在我将ip更改为.31之后,我得到了以下错误:

师父:

代码语言:javascript
复制
Apr  8 10:07:45 hfr-nl-dns01 pdns_server[11803]: AXFR of domain 'ns2.domain.example' initiated by 10.10.30.32
Apr  8 10:07:45 hfr-nl-dns01 pdns_server[11803]: AXFR of domain 'ns2.domain.example' allowed: client IP 10.10.30.32 is in allow-axfr-ips
Apr  8 10:07:45 hfr-nl-dns01 pdns_server[11803]: AXFR of domain 'ns2.domain.example' failed: not authoritative

奴隶:

代码语言:javascript
复制
Apr  8 10:07:45 hfr-nl-dns02 pdns_server[2737]: Initiating transfer of 'ns2.domain.example' from remote '10.10.30.31'
Apr  8 10:07:45 hfr-nl-dns02 pdns_server[2737]: Unable to AXFR zone 'ns2.domain.example' from remote '10.10.30.31' (resolver): AXFR chunk error: Server Not Authoritative for zone / Not Authorized

编辑2:主数据库记录(在这里的IP中可以看到)也用/etc/host文件中定义的名称服务器的主机名进行了尝试。

代码语言:javascript
复制
+----+-----------+--------------------+------+----------------------------------------------------------------------------------+------+------+----------+-----------+------+
| id | domain_id | name               | type | content                                                                          | ttl  | prio | disabled | ordername | auth |
+----+-----------+--------------------+------+----------------------------------------------------------------------------------+------+------+----------+-----------+------+
| 14 |         5 | domain.example     | NS   | 10.10.30.31                                                                      | 3600 |    0 |        0 | NULL      |    1 |
| 15 |         5 | domain.example     | NS   | 10.10.30.32                                                                      | 3600 |    0 |        0 | NULL      |    1 |
EN

回答 1

Server Fault用户

回答已采纳

发布于 2020-04-23 18:22:59

我设法找出了这一部分给任何想知道的人:

·必须将名称服务器正确地设置为NS域记录,即fi、N和A记录。

这意味着域名服务器应该托管在这个域名上;ns1.example.com / ns2.example.com。添加一个带有服务器所在的公共IP的A记录和指向该A记录的NS记录。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1011367

复制
相关文章

相似问题

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