Let’s start the discussion about How to flush DNS in following methods.
Flush DNS bash
If you’re having connection problems, you should clean your DNS cache. This may appear to be a difficult and sophisticated operation, but it is lot simpler than you might imagine.
In truth, flushing the DNS Cache takes little technical knowledge, especially if you have a clear step-by-step explanation to guide you through the process.
sudo systemd-resolve --flush-caches
Another way to flush DNS is :
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 flush DNS cache in linux