Flushing your DNS cache on your local computer can ensure that you're pulling the most current version of a website. In this article, we will review the simplest methods to flush your DNS cache for various operating systems.
Windows 10
- Right-click the Windows icon at the bottom left of the screen
- Click "Run"
- Enter in "cmd"
- Once the Windows Command Prompt pops up, type in:
- ipconfig /flushdns then hit ENTER on your keyboard
- If done correctly, you'll see the following message:
- Windows IP Configuration Successfully flushed the DNS Resolver Cach
Mac OS (Sonoma, Ventura, Monterey)
- Open Finder
- Hover over Go
- Click on Utilities
- Click on Terminal
- A terminal (command prompt) window will open up
Within the command prompt, type in:
- sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder, then hit ENTER on your keyboard
Note: You may be asked to enter your password after executing the command
Linux
- Open up a command terminal by holding down Ctrl, Alt, T
Depending on your Linux distro, type in the following commands:
- Ubuntu: sudo systemd-resolve –flush-caches
- NCSD: sudo /etc/init.d/nscd restart
- Dnsmasq: sudo /etc/init.d/dnsmasq restart
- BIND: sudo /etc/init.d/named restart
Note: You may be asked to enter your password after executing the command