升级 isc-dhcp-server 并保留我的配置后,我出现了一个奇怪的错误,如下面的日志所示:
Sep 21 20:02:03 asia isc-dhcp-server[24548]: key DDNS_UPDATE;
Sep 21 20:02:03 asia isc-dhcp-server[24548]: ^
ping-check true;
one-lease-per-client true;
get-lease-hostnames true;
update-conflict-detection false;
ddns-updates on;
ddns-update-style interim;
update-static-leases on;
allow unknown-clients;
use-host-decl-names on;
include "/etc/dhcp/rndc.key";
zone bunker.org. {
primary localhost;
key DDNS_UPDATE;
}
zone 1.168.192.in-addr.arpa. {
primary localhost;
key DDNS_UPDATE;
}
并记录在这里:
Sep 21 20:02:03 asia isc-dhcp-server[24548]: /etc/dhcp/dhcpd.conf line 30: unknown key DDNS_UPDATE
Sep 21 20:02:03 asia isc-dhcp-server[24548]: key DDNS_UPDATE;
Sep 21 20:02:03 asia isc-dhcp-server[24548]: ^
Sep 21 20:02:03 asia isc-dhcp-server[24548]: /etc/dhcp/dhcpd.conf line 35: unknown key DDNS_UPDATE
Sep 21 20:02:03 asia isc-dhcp-server[24548]: key DDNS_UPDATE;
Sep 21 20:02:03 asia isc-dhcp-server[24548]: ^
答案1
修改你的区域以便:
zone bunker.org. {
primary 192.168.1.212;
key rndc-key;
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.212;
key rndc-key;
}