Flushing your DNS cache can be a useful troubleshooting step if you’re having issues accessing certain websites or experiencing connectivity issues. Here’s how to do it on both Mac and Windows systems:
Flushing DNS on a Mac
- Open the Terminal app. You can do this by using Spotlight Search (command + spacebar) and typing in “Terminal,” or by going to your Applications folder and finding it there.
- Once the Terminal app is open, type in the following command and hit enter:
sudo killall -HUP mDNSResponder
- Enter your password when prompted.
- You should see a message saying that the “mDNSResponder” has been successfully stopped.
Flushing DNS on Windows
- Open the Start menu and type “cmd” into the search bar.
- Right-click on the “Command Prompt” app and select “Run as administrator.”
- In the command prompt, type in the following command and hit enter:
ipconfig /flushdns
- You should see a message saying that the DNS cache has been successfully flushed.
That’s all there is to it! Flushing your DNS cache can help resolve issues with connectivity and website access, so it’s a useful trick to have in your toolkit.