elementary linux flush dns cache code example
Example 1: flush dns cache linux
sudo systemd-resolve --flush-caches
Example 2: flush dns linux
sudo systemd-resolve --flush-caches
sudo systemd-resolve --statistics
sudo /etc/init.d/dns-clean start
sudo systemd-resolve --flush-caches
sudo systemd-resolve --flush-caches
sudo systemd-resolve --statistics
sudo /etc/init.d/dns-clean start