How to Flush DNS Cache on Ubuntu 18.04 LTS?

2019-07-18 69

How to Flush DNS Cache on Ubuntu 18.04 LTS?

First, Right click on the desktop, and then click on 'Open terminal.' After that, follow the methods below:-

Method 1: By using systemd-resolve

Step 1: First check DNS statistics by command below:-

sudo systemd-resolve --statistics

Step 2: Flush DNS cache by command below:-

sudo systemd-resolve --flush-caches

Step 3: Now, Check DNS statistics again

sudo systemd-resolve --statistics


Method 2: Using dns-clean

sudo /etc/init.d/dns-clean start


Thanks for watching, please like and subscribe

==============================================
https://www.facebook.com/HowtoTutorialsByAmit/