Commit 57154a01 authored by nimrod's avatar nimrod
Browse files

Flush DNS script.

To flush the DNS resolvers' cache.
parent 2af00b07
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
#!/bin/sh
set -eu

if wb -u
then
    flatpak-spawn --host \
        sudo systemctl restart systemd-resolved.service
else
    sudo systemctl restart systemd-resolved.service
fi
ssh ns1.shore.co.il doas rcctl restart unbound