I'm having problems related to DNS solving in my Ubuntu 9.10.
Prior complaining to my ISP I would like to refresh my local DNS cache, like in Windows we do ipconfig /flushdns.
How can I do that in Ubuntu?
|
|
|
Øhh, ubuntu doesn't cache DNS per default. So there is nothing to flush! (but maybe your SOHO router does). Installing nscd will make ubuntu cache DNS, afterwhich you can clear your cache - but this is besides the point, when you don't have it installed yet! |
|||
|
|
|
Ubuntu uses dnsmasq for a local cache. Sending it a SIGUP (sudo killall -HUP dnsmasq) will re-read the cache.
|
|||||||
|
|
I just had this problem with a site for which I changed the DNS, and googling for a solution I found this page. In my experience Firefox sometimes keeps its own DNS cache and doesn't clear it in time. So if you're viewing a site in Firefox, and keep seeing the old site, trying Chrome might solve the problem. If that works, you can clear the cache in Firefox. This happened in Ubuntu, I don't know if this happens on Windows or OSX as well. I don't have nscd installed. I noticed however that in the terminal the new DNS is found several minutes later, so the problem solved itself. |
|||
|
|