Sometimes DNS cache can cause old or incorrect records to be used when accessing websites or servers. Flushing the DNS cache helps clear these outdated entries and forces your system to resolve the most recent DNS data.
Windows (10, 11, Server)
- Click Start, search for Command Prompt.
- Right-click and select Run as Administrator.
- Type the following command:
ipconfig /flushdns
You should see:
Successfully flushed the DNS Resolver Cache.
Linux
✅ For systemd-based systems (Ubuntu 18.04+):
sudo systemd-resolve --flush-caches
✅ If using dnsmasq:
sudo systemctl restart dnsmasq
✅ If using nscd:
sudo service nscd restart
✅ For BIND (named):
sudo rndc flush
macOS
For macOS Ventura, Monterey, Big Sur, Catalina:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Enter your Mac's password if prompted. No success message will appear, but the cache will be flushed.
Google Chrome (Browser DNS)
- Open this URL in Chrome:
chrome://net-internals/#dns
- Click on "Clear host cache".
This only affects Chrome’s internal DNS cache.
- Flushing DNS is safe and can be repeated when needed.
- It doesn’t affect performance or browsing history.
- Restart your browser after DNS flush if you're facing web issues.
Need Help?
If you're still facing DNS-related issues, please open a support ticket via your DianaHost client area or contact our support team directly.