mirror of
https://github.com/Chewbaccalakis/random.git
synced 2026-07-12 13:33:58 -07:00
Update flushdns
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user