Archives For November 30, 1999

How to Flush DNS Cache on Ubuntu 13.04, 12.10

Last updated: July 18, 2013

This simple tutorial will show you how to flush or clear your system’s DNS records on Ubuntu 13.04 Raring and 12.10 Quantal.

Objectives:

  • Flush DNS records on Ubuntu 13.04 or Ubuntu 12.10
  • Enjoy!

To get started, press Ctrl+Alt+T to open a terminal window.

Open Terminal to run commands

Then run command to flush dns:

sudo /etc/init.d/dns-clean restart

You can also use this command:

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

In addition, to flush nscd dns cache:

sudo /etc/init.d/nscd restart

To flush dnsmasq dns cache:

sudo /etc/init.d/dnsmasq restart