summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Prindeville2022-07-14 03:20:43 +0000
committerPhilip Prindeville2022-07-14 03:20:43 +0000
commitab396fa5844d0f9ab7adbc44f323c59d2729c8e6 (patch)
treeb5fbd1186837982c2bcb6255bcbfce588fa40e25
parente8f6600851557f89a77389db7840ce0a45494df7 (diff)
downloadpackages-ab396fa5844d0f9ab7adbc44f323c59d2729c8e6.tar.gz
isc-dhcp: don't use allow-update in bind config
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
-rwxr-xr-xnet/isc-dhcp/files/dhcpd.init22
1 files changed, 12 insertions, 10 deletions
diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init
index e3dcdfdd23..e849a387d4 100755
--- a/net/isc-dhcp/files/dhcpd.init
+++ b/net/isc-dhcp/files/dhcpd.init
@@ -465,10 +465,11 @@ general_config() {
cat <<EOF > $conf_local_file
zone "$domain" {
- type master;
- file "$dyndir/db.$domain";
- allow-update { key $session_key_name; };
- allow-transfer { key $session_key_name; };
+ type master;
+ file "$dyndir/db.$domain";
+ update-policy {
+ grant $session_key_name zonesub any;
+ };
};
EOF
@@ -477,10 +478,11 @@ EOF
mynet="$(rev_str "$mynet" ".")"
cat <<EOF >> $conf_local_file
zone "$mynet.in-addr.arpa" {
- type master;
- file "$dyndir/db.$mynet.in-addr.arpa";
- allow-update { key $session_key_name; };
- allow-transfer { key $session_key_name; };
+ type master;
+ file "$dyndir/db.$mynet.in-addr.arpa";
+ update-policy {
+ grant $session_key_name zonesub any;
+ };
};
EOF
@@ -504,7 +506,7 @@ include "$session_key_file";
zone $domain. {
primary 127.0.0.1;
- key local-ddns;
+ key $session_key_name;
}
EOF
@@ -514,7 +516,7 @@ EOF
cat <<EOF
zone $mynet.in-addr.arpa. {
primary 127.0.0.1;
- key local-ddns;
+ key $session_key_name;
}
EOF