How to Clear DNS Cache
DNS cache refers to the temporary storage of information about previous DNS lookups on a router, machine's OS, or web browser.
Keeping a local copy of a DNS lookup allows your router, OS, or browser to quickly retrieve it and thus a domain can be resolved to its corresponding IP much more efficiently.
However, sometimes it can cause a problem when the new filtering settings conflict with the information saved in the cache. Usually, the problem resolves after clearing the cache on a browser level.
Browser level
Chrome, Edge, Opera, Firefox, and many others
Press Ctrl + Shift + Delete simultaneously on the keyboard to open the appropriate window. Select "Cache" and click "Clear".
Please note, that you don't need to delete cookies and saved passwords.
Alternatively, you can use the browser's Settings menu, search for the "cache" setting, and select the suggested option.
Advanced cache clearing for Chrome browser
Certain popular, high-traffic websites might open even after the cache is cleared. To fix this, do the following:
- Enter chrome://net-internals/#dns in the address bar and press Clear host cache.
- Enter chrome://net-internals/#sockets in the address bar and press Flush socket pools.
- Clear DNS cache of the operating system (read below).
Safari
- Click on Safari on the top menu bar.
- Click Preferences.
- Click the Privacy tab.
- Click Manage Website Data...
- Click Remove All.
- Click Remove Now.
- Go to the Safari menu on the top menu bar.
- Select Quit to close Safari and save your changes.
iOS, iPadOS
Safari browser:
1. Go to Settings (the app with the gear icon).
2. Scroll down until you see Safari. Tap it.
3. Press Clear History and Website Data.
4. Press Clear History and Data again in the warning notification.
Chrome browser:
1. On your iPhone or iPad, open the Chrome app.
2. At the bottom, press More ...
3. Press History > Clear browsing data.
4. Select Cookies, Site Data and Cached Images and Files.
5. Press Clear browsing data.
Android
- Long press on the app in the app menu.
- Select App info in the pop-up window.
- Press Storage usage in the app's info page.
- Press Clear cache.
System level
Windows
Mac
- Search for the Terminal in the applications list or press CMD+Space.
- Enter the following command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder - Press Enter.
- If prompted, type your administrator account password.
- Press Enter again to submit your password.
Linux
- Search for the Terminal in the applications list or press Ctrl+Alt+T.
- Enter the following command:
sudo systemd-resolve --flush-caches - Press Enter.
- If prompted, type your administrator account password.
- Press Enter again to submit your password.
iOS, iPadOS, Android
- Turn Airplane mode on
- Reboot device
- Turn Airplane mode off
Router level
Reboot the router using the router's interface.
Alternatively, turn the router off by pressing its power button, wait for 15 seconds, and turn the router back on.