DNS flushing is the process of clearing any IP addresses or other DNS records from the DNS cache. These are replaced with new ones.
ImportancePermalink
- Sometimes, it resolves error 404 in websites.
- Prevents DNS cache poisoning.
- Keeps search behaviour hidden from browsers.
- Improves network troubleshooting.
How to doPermalink
WindowsPermalink
Use ipconfig /flushdns
in the Command prompt
LinuxPermalink
Usually, Linux doesn’t have any sort of DNS cache. If it does, use this command : sudo systemd-resolve --flush-caches
.
ChromePermalink
Chrome keeps a separate DNS cache which can be cleared by typing chrome://net-internals/#dns
into the address bar and clicking on Clear host cache button.
When to flush?Permalink
- After updating a website’s IP address.
- If DNS spoofing is detecting.
- If experiencing website connectivity issues.