Files
dotfiles/raycast/Documents/Raycast Scripts/flush-dns.sh
2023-08-30 08:28:14 +01:00

18 lines
407 B
Bash
Executable File

#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Flush DNS
# @raycast.mode fullOutput
# @raycast.packageName Browsing
# Optional parameters:
# @raycast.icon 💾
# Documentation:
# @raycast.author Andrew Williams
# @raycast.authorURL https://github.com/nikdoof
# @raycast.description Flushes DNS cache on macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder