summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorkroy-the-rabbit <kroy@kroy.io>2020-05-28 00:39:45 -0500
committerGitHub <noreply@github.com>2020-05-28 07:39:45 +0200
commit5b1ac79562bd60494c9ec31723b27b0affe7fe5c (patch)
tree6bc442bb106f39995f2170b5c3198a594faf61f4 /src/system
parent47a08a610e13648074392b981af7d52f0c5506d0 (diff)
downloadvyos-1x-5b1ac79562bd60494c9ec31723b27b0affe7fe5c.tar.gz
vyos-1x-5b1ac79562bd60494c9ec31723b27b0affe7fe5c.zip
dhcp: T2465: T2483: fix DNS resolution (pdns restatt)
Diffstat (limited to 'src/system')
-rwxr-xr-xsrc/system/on-dhcp-event.sh12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh
index 385ae460f..57f492401 100755
--- a/src/system/on-dhcp-event.sh
+++ b/src/system/on-dhcp-event.sh
@@ -20,7 +20,6 @@ client_ip=$3
client_mac=$4
domain=$5
file=/etc/hosts
-changes=0
if [ -z "$client_name" ]; then
logger -s -t on-dhcp-event "Client name was empty, using MAC \"$client_mac\" instead"
@@ -44,13 +43,11 @@ 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++))
;;
*)
@@ -59,15 +56,6 @@ case "$action" in
;;
esac
-if [ $changes -gt 0 ]; then
- echo Success
- pid=`pgrep pdns_recursor`
- if [ -n "$pid" ]; then
- sudo rec_control --socket-dir=/run/powerdns reload-zones
- fi
-else
- echo No changes made
-fi
exit 0