In Windows, we use ipconfig /flushdns command to flush the system dns cache. In Ubuntu, there’s also a few commands that clean/flush dns cache. This tutorial shows how to flush dns cache on Ubuntu.

Open up a terminal window by press Ctrl+Alt+T.

  • run this command to flush dns cache:
    sudo /etc/init.d/dns-clean restart

    or use:

    sudo /etc/init.d/networking force-reload

For others:

  • flush nscd dns cache:
    sudo /etc/init.d/nscd restart
  • flush dnsmasq dns cache:
    sudo /etc/init.d/dnsmasq restart
facebooktwittergoogle_plus