Ubuntu Dns Cache Clear

Some time ago I moved the server a website from one register to another register with the domain transfer is not in position so the domain and hosting different registers. After the update my web finally name server error. indeed usually takes 24 hours after changing of name server, but after the change of name servers still my web error and displays the error cgi.

After thought it turned out I forgot to clean the DNS cache on my laptop. After clearing the DNS cache, web I went back to normal.

How to Clear DNS Cache in ubuntu
How do I clear the DNS cache in ubuntu? It's easy, let's take a look at.

1. Clear the browser cache
Usually the browser cache or store the cookies, this can we eliminate it first so that the latest data we get. If this one don't need I explain again

2. Flush or Clear the DNS in the operating system
Usually if we have to go into the terminal

And then run the following command to flush DNS:
sudo /etc/init.d/dns-clean restart

Then you run the following command again to restart network
sudo /etc/init.d/networking force-reload

To flush the DNS Cache, we need a little help nscd or dnsmask. If you haven't installed this application on ubuntu you then please install first his nscd
sudo apt-get install nscd
sudo /etc/init.d/nscd restart

While to flush the DNS cache dnsmasq:
sudo /etc/init.d/dnsmasq restart

I think it is enough to Flush DNS or mem Clear DNS on ubuntu, may be useful and could be a lesson for you all

Click here for Comments