How to flush dns ubuntu 18.04

In this article let’s discuss about How to flush dns ubuntu 18.04. Let’s go through the following methods without any delay.

Method 1:

sudo systemd-resolve --flush-caches

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

sudo systemctl restart nscd

Hope the above solution works.

Realted Posts : Update angular cli globally