delete cash on ubuntu 1

delete cash on ubuntu

//delete cash  //
systemd-resolve --statistics
systemd-resolve --flush-caches

Here is what the above code is Doing:
1. We’re using the subprocess module to run the systemd-resolve command.
2. We’re using the –statistics flag to get the statistics of the DNS cache.
3. We’re using the –flush-caches flag to flush the DNS cache.

Similar Posts