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?

link|improve this question

69% accept rate
feedback

2 Answers

Ø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!

link|improve this answer
feedback

This comes via UbuntuGeek

In ubuntu if you want to flush DNS cache you need to restart nscd daemon

Install nscd using the following command

sudo aptitude install nscd

Flush DNS Cache in Ubuntu Using the following command

sudo /etc/init.d/nscd restart

link|improve this answer
@Fujishiro Please avoid posting only links, if the blog gets closed/goes down the answer becomes useless. – Sathya Apr 26 '10 at 13:25
Sorry and thank you very much for the edit. – Shiki Apr 26 '10 at 13:49
nscd may or may not be installed. It is not part of all installations. – Dan Andreatta Apr 26 '10 at 15:33
Thats why you issue the "sudo aptitude install nscd" at first. (Ubuntu lacks even the basic apps like MC and so.) – Shiki Apr 27 '10 at 9:34
9  
nscd sounds like it is short for ns cache daemon. If you don't have it installed, and you're trying to get rid of your cache, why would you install a cache service, only to flush the service you just installed? Seems kind of stupid. – superjoe30 Aug 30 '11 at 5:57
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.