Let’s start the discussion about How to flush DNS cache in linux in following methods.
flush dns cache linux
To flush the DNS cache in Linux run the below commands.
sudo systemd-resolve --flush-caches sudo systemd-resolve --statistics
You can also use this command to flush the DNS.
sudo /etc/init.d/dns-clean start
I hope the strategies listed above work for you. Happy coding and come back again.
Similar Post : How to clear DNS cache in Ubuntu