From c043aab86d3014146a643f1c6d25edec09278873 Mon Sep 17 00:00:00 2001 From: kroy Date: Mon, 18 Nov 2019 17:16:46 -0600 Subject: [vyos-hostsd] T1812: Reload pdns on dhcp client update --- src/system/on-dhcp-event.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/system/on-dhcp-event.sh') diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh index 70a563d4c..af7c86ee7 100755 --- a/src/system/on-dhcp-event.sh +++ b/src/system/on-dhcp-event.sh @@ -45,11 +45,13 @@ case "$action" in # add host /usr/bin/vyos-hostsd-client --add-hosts --tag "DHCP-$client_ip" --host "$client_fqdn_name,$client_ip" ;; + ((changes++)) release) # delete mapping for released address # delete host /usr/bin/vyos-hostsd-client --delete-hosts --tag "DHCP-$client_ip" ;; + ((changes++)) *) logger -s -t on-dhcp-event "Invalid command \"$1\"" -- cgit v1.2.3