Selasa, 10 Juni 2014

Flushing DNS Cache on Ubuntu 12.04

Honestly, I often facing this problem especially when managing and configuring my server.

In this tutorial, make sure nscd installed on your machine first. If it doesn't, the command will not working. In otherword, you can't flushing your DNS through this way.

sudo apt-get install nscd

sudo /etc/init.d/nscd status

sudo /etc/init.d/nscd start

sudo /etc/init.d/nscd stop

sudo /etc/init.d/nscd restart

#Flushing DNS
sudo /etc/init.d/networking restart

#Cleaning DNS and start
sudo /etc/init.d/dns-clean start

This is the screen shot: