【发布时间】:2021-01-03 09:40:27
【问题描述】:
我在使用 powerdns 为 ddns 实现 isc-dhcp 时遇到问题,无论我更改配置多少次,它总是会返回此错误“无法添加转发映射 from to:操作已取消”
然后这个“无法将前向映射添加到:意外错误”
这是我的 dhcpd.conf 文件
authoritative;
log-facility local7;
key dhcp-key {
algorithm hmac-sha256;
secret "some comfusing scramble alphabet and number and symbol ass well";
};
default-lease-time 720000;
max-lease-time 2160000;
ddns-updates on;
ddns-update-style interim;
update-static-leases on;
ping-check true;
ddns-domainname "gwusers.lan";
ddns-rev-domainname "in-addr.arpa.";
zone gwusers.lan. {
primary 192.168.183.111;
key dhcp-key;
}
shared-network user-ip {
subnet 172.17.183.0 netmask 255.255.255.0 {
option routers 172.17.183.254;
option domain-name-servers 192.168.183.111, 192.168.183.222;
option domain-search "mycomp.local";
pool {
#one-lease-per-client true;
ping-check true;
range 172.17.183.1 172.17.183.229;
}
zone 183.17.172.in-addr.arpa. {
primary 192.168.183.111;
key dhcp-key;
}
}
subnet 172.21.183.0 netmask 255.255.255.0 {
option routers 172.21.183.254;
option domain-name-servers 192.168.183.111, 192.168.183.222;
option domain-search "mycomp.local";
pool {
#one-lease-per-client true;
ping-check true;
range 172.21.183.1 172.21.183.229;
}
zone 183.21.172.in-addr.arpa. {
primary 192.168.183.111;
key dhcp-key;
}
}
}
在我的 pdns.conf 中
我已启用“dnsupdate=yes”和“allow-dnsupdate-from=”
我已遵循本指南,但似乎根本不起作用
NB : dhcp-server (Centos 8 with dhcpd version is 4.3.6) 和 dns server (centos 7 with pdns version is 4.3.0) 不在一台机器下,我已经分别安装了。
有人知道如何解决这个问题吗?
【问题讨论】:
-
我认为这个问题更适合服务器故障。