Update flushdns

This commit is contained in:
Nick Trochalakis
2025-02-10 00:32:12 -08:00
committed by GitHub
parent 44271657a0
commit 60f8bafead
+13 -1
View File
@@ -1 +1,13 @@
dscacheutil -flushcache; sudo killall -HUP mDNSResponder #!/bin/bash
# Check if the script is run as root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as sudo. Please try again with sudo"
exit 1
fi
# Flush DNS cache
dscacheutil -flushcache
killall -HUP mDNSResponder
echo "DNS cache flushed, probably..."