On Windows computers, you can clear the DNS cache by entering a single command:
- Depending upon your version of Windows, click the Start button or... (in the lower left area of your screen)
- Right click on the Command Prompt icon to reveal the Context Menu
- Select Run As Administrator in the Context Menu
- In the command box that opens, enter
ipconfig /flushdns - Hit the Enter key
On Mac computers, you can clear the DNS cache by entering one of three commands, depending upon your version of macOS:
- Determine your version of macOS to select the appropriate command of the two listed below (Apple Icon > About This Mac), or simply run all three commands
- In your Applications folder, open the Utilities folder, and launch the Terminal app
- For versions 10.7, 10.8, 10.9, or 10.10.4 and above, enter
sudo killall -HUP mDNSResponder - For versions 10.10.1, 10.10.2, or 10.10.3, enter
sudo discoveryutil mdnsflushcache - For versions 10.5 or 10.6, enter
sudo dscacheutil -flushcache - Enter your password at the prompt (the cursor will not advance, so don't be surprised if it appears to not be working)
- Hit the Enter key
Note that Windows will tell you when the process completes as expected with feedback like Successfully flushed the DNS Resolver Cache, but Mac does not tell you anything at all. Thank you Apple.