Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

On Microsoft Windows OS, at the command prompt, I issue the command ipconfig /flushdns to flush out the DNS resolver cache.

On Ubuntu 12.10, what is the corresponding command?

share|improve this question

marked as duplicate by Mik, Eliah Kagan, Seth, Eric Carvalho, Chris Wilson Mar 23 '13 at 19:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You do that by restarting nscd

To install nscd Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below:

sudo apt-get install nscd

To flush DNS Cache do:

sudo /etc/init.d/nscd restart
share|improve this answer
Synaptic has this in the description: "A daemon which handles passwd, group and host lookups for running programs and caches the results for the next query. You should install this package only if you use slow services like LDAP, NIS or NIS+." So is that why it isn't installed by default? (I don't have it installed.) – user25656 Mar 23 '13 at 16:40
Ubuntu doesn't include nscd in the default installation. I really don't know why, but I guess its because it doesn't cache dns names by default. – Mitch Mar 23 '13 at 17:15

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