简短的介绍
我正在运行两台带有 PowerDNS 的机器,一台是主服务器 (SQL),另一台是从服务器 (SQL)。问题是,主 NS 上添加的每个域都不会添加到从属 DNS 服务器上
环境
Operating system: CentOS7
Software version: powerdns4.2
主配置ns1//192.168.1.99:
daemon=yes
guardian=no
launch=gmysql
gmysql-host=localhost
gmysql-user=powerdns
gmysql-password=mypassword
gmysql-dbname=powerdns
local-address=192.168.1.99
local-port=53
log-dns-details=yes
log-dns-queries=yes
log-timestamp=yes
loglevel=4
setgid=pdns
setuid=pdns
master=yes
allow-axfr-ips=192.168.1.98
also-notify=192.168.1.98
daemon=yes
guardian=no
launch=gmysql
gmysql-host=localhost
gmysql-user=powerdns
gmysql-password=mypassword
gmysql-dbname=powerdns
local-address=192.168.1.98
local-port=53
log-dns-details=yes
log-dns-queries=yes
log-timestamp=yes
loglevel=4
setgid=pdns
setuid=pdns
slave=yes
master=no
allow-notify-from=192.168.1.99
master log:
Mar 21 21:08:46 ns1 pdns_server: Unable to queue notification of domain 'exemple.com': nameservers do not resolve!
Mar 21 21:08:46 ns1 pdns_server: Queued also-notification of domain' exemple.com' to 192.168.1.98:53
Mar 21 21:08:48 ns1 pdns_server: Received unsuccessful notification report for 'exemple.com' from 192.168.1.98:53, error: Query Refused
Mar 21 21:08:48 ns1 pdns_server: Removed from notification list: 'exemple.com' to 192.168.1.98:53 Query Refused
PS 与禁用防火墙和 SELinux 存在同样的问题请问如何确保主从之间区域的传输?
问候,
答案1
从 4.2 开始你需要添加:
superslave=yes
对奴隶来说。
文档链接:https://doc.powerdns.com/authoritative/settings.html#superslave
还要确保从属服务器上的超级主表已正确设置主数据。