diff options
author | kroy <kroy@kroy.io> | 2019-11-18 17:16:46 -0600 |
---|---|---|
committer | John Estabrook <jestabro@sentrium.io> | 2019-11-19 13:20:39 -0600 |
commit | 5b5b243131d7752b1d7281ccd528bf041a8890ed (patch) | |
tree | c585b847d8ce98ace6614e8209771a752848229b | |
parent | be5d95ecc74c5552072a2b6628d19d3eeda3a9df (diff) | |
download | vyos-1x-5b5b243131d7752b1d7281ccd528bf041a8890ed.tar.gz vyos-1x-5b5b243131d7752b1d7281ccd528bf041a8890ed.zip |
[vyos-hostsd] T1812: Reload pdns on dhcp client update
(cherry picked from commits c043aab86d3014146a643f1c6d25edec09278873
9ff0fd30b985cc1ff8d9237158e0c110a81feccc)
-rwxr-xr-x | src/system/on-dhcp-event.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh index 70a563d4c..5046912a6 100755 --- a/src/system/on-dhcp-event.sh +++ b/src/system/on-dhcp-event.sh @@ -44,11 +44,13 @@ case "$action" in fi # 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++)) ;; *) |