# How to Flush the DNS Cache on Mac

Updated: November 12, 2026

Supercharge: Price: $20, one-time purchase, plus tax where applicable. Platforms: macOS. Get it from: [Setapp](https://go.setapp.com/stp181?refAppID=742&utm_medium=vendor_program&utm_content=button), [Gumroad](https://sindresorhus.gumroad.com/l/supercharge?wanted=true). Free trial: [download](https://sindresorhus.com/supercharge#trial). Requires macOS 26.4 or later. Free older versions for macOS 15: [download](https://sindresorhus.com/supercharge#older-versions).

URL: https://sindresorhus.com/guides/flush-dns-cache-mac

Open Terminal, run `sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder`, and enter your password. To do it with a button, without Terminal, use [Supercharge](https://sindresorhus.com/supercharge).

## With Supercharge

1. Open the settings of [Supercharge](https://sindresorhus.com/supercharge), and click “Tools”.
1. In the “Maintenance” section, click “Flush DNS Cache”.
1. Enter your administrator password.

Flushing the DNS cache can fix connection problems after a DNS change, like a website that does not load after it moved to a new server, or a new DNS server that seems to have no effect.

## Without an app

Open the Terminal app, and run this command:

```console
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
```

Enter your administrator password, and press Return. Terminal shows no characters while you type the password, and there is no output when it works. If you are comfortable with Terminal, this is just as good as the button.