Flush the DNS cache
Works for macOS 10.6+ and Windows
On modern macOS, Flush DNS clears both OS-level host-resolution caches:
/usr/bin/dscacheutil -flushcache clears the Directory Service/libinfo cache./usr/bin/killall -HUP mDNSResponder purges the separate mDNSResponder DNS-reply cache.Browsers and other applications may maintain additional caches that this extension does not clear.
Flushing the macOS caches requires administrator privileges. Flush DNS uses Touch ID when sudo is configured with the pam_tid.so PAM module. This configuration applies to sudo globally, not only to Raycast.
sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
/etc/pam.d/sudo_local:
auth sufficient pam_tid.so
Add this line to the auth entries in /etc/pam.d/sudo:
auth sufficient pam_tid.so
macOS updates may overwrite /etc/pam.d/sudo. If Touch ID is unavailable or not enabled for sudo, Flush DNS retains the existing administrator password prompt. Cancelling or failing a Touch ID attempt stops the flush instead of opening a second password prompt.