Updates to in-addr.arpa are being rejected with:
update failed: REFUSED
because we create an empty zone, and then try to add it again
when it already exists. So use modzone instead to update it.
Signed-off-by: Philip Prindeville <[email protected]>
UPSTREAM_NAME:=dhcp
PKG_REALVERSION:=4.4.3-P1
PKG_VERSION:=4.4.3_p1
-PKG_RELEASE:=12
+PKG_RELEASE:=13
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
local zpath
zpath="$1"
- cat > "$zpath" <<\EOF
+ cat > "$zpath" <<EOF
;
-; BIND empty zone created by isc-dhcp-server
+; BIND empty zone created by isc-dhcp-server at $(date)
;
-$TTL 604800
+\$TTL 604800
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
chown bind:bind "$zpath" || return 1
chmod 0664 "$zpath" || return 1
- if ! error=$(rndc addzone $zone "{
+ if ! error=$(rndc modzone $zone "{
type primary;
file \"$zpath\";
update-policy {