In this guide, we will explain how to flush DNS Cache on Linux and Windows.
- Follow these steps to clear the DNS cache in Linux:
- Open your “terminal”.
- Execute the following command.
sudo systemd-resolve --flush-caches
- Next, the Terminal will ask for your password. Enter your password to complete the command execution and clear your DNS cache.Note: If you’re using a Linux distribution other than Ubuntu, you can clear your DNS cache by running this command:
sudo /etc/init.d/dns-clean start
- Once you execute this command, you should see that your cache has been successfully cleared.
- Now, let us check how to clear the DNS Cache on Windows:
In this way, you can flush DNS Cache on Linux and Windows. If you need any assistance do contact our support staff at your earliest.