我在 2 个 VPS 服务器上安装了 PowerDNS:
ns1 - 10.0.0.1
ns2 - 10.0.0.2
问题是记录/区域没有从主设备同步到从设备。以下是配置:
主服务器:
allow-axfr-ips=10.0.0.2/32
daemon=yes
disable-axfr=no
include-dir=/etc/powerdns/pdns.d
master=yes
setgid=pdns
setuid=pdns
从服务器:
daemon=yes
disable-axfr=yes
include-dir=/etc/powerdns/pdns.d
setgid=pdns
setuid=pdns
slave=yes
slave-cycle-interval=60
从服务器上的数据库
MariaDB [powerdns]> select * from supermasters;
+-------------+------------------+---------+
| ip | nameserver | account |
+-------------+------------------+---------+
| 10.0.0.1 | ns2.example.com | admin |
+-------------+------------------+---------+
1 row in set (0.000 sec)
两台服务器都运行在 MySQL 数据库后端。主服务器按预期提供所有记录,但从服务器给出:
root@vps10:~# dig example.com @localhost
; <<>> DiG 9.16.1-Ubuntu <<>> example.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 22750
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;example.com. IN A
;; Query time: 4 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Feb 04 22:11:39 UTC 2022
;; MSG SIZE rcvd: 45
我还检查了从服务器,它没有来自主服务器的任何区域。在主服务器上也试过这个:
root@vps06:~# pdns_control notify example.com
Added to queue
上网寻找任何解决方案,但没有任何解决方案。谁能指导我或指出我的配置有什么问题?