From 7113fda70287360624b409fec90715fc863f9e8b Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 24 Apr 2024 18:00:00 +0300 Subject: [PATCH] sudoers.d/nordvpnd: add restarting unbound & systemd-resolved --- etc/sudoers.d/nordvpnd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/sudoers.d/nordvpnd b/etc/sudoers.d/nordvpnd index 65312381..ab836dc6 100644 --- a/etc/sudoers.d/nordvpnd +++ b/etc/sudoers.d/nordvpnd @@ -12,3 +12,7 @@ %nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-networkd.service # Tells Chrony we are connected and thus maybe connects to IPv6 NTP servers %nordvpn ALL=NOPASSWD: /usr/bin/chronyc online +# Clearing DNS caches once we are disconnected +%nordvpn ALL=NOPASSWD: /bin/systemctl restart unbound.service +%nordvpn ALL=NOPASSWD: /bin/systemctl restart systemd-resolved.service +# vim: filetype=sudoers