ubuntu clear dns cache code example
Example 1: ubuntu clear dns cache
sudo systemd-resolve --flush-caches
Example 2: flush dns ubuntu 18.04
sudo systemctl restart nscd
Example 3: cmd clear dns cache
ipconfig /flushdns
sudo systemd-resolve --flush-caches
sudo systemctl restart nscd
ipconfig /flushdns