{{ !articles[0].partner.isSponsoringArticle ? "Platinum" : "Portal" }} Partner
architects,high-perf,performance,tips and tricks

How to flush DNS cache

Sometimes it's good to know how to flush the DNS cache on your Linux or Windows box. Here is how to do it:


Restart the nscd daemon. In case it is not installed install it first
 apt-get install nscd  
then type the command
 sudo /etc/init.d/nscd restart  
 sudo service nscd restart  
There are a few alternatives to flush the DNS cache under Linux. See this blog posting to get a more complete overview.


Open a command shell and type
 ipconfig /flushdns  

Published at DZone with permission of {{ articles[0].authors[0].realName }}, DZone MVB. (source)

Opinions expressed by DZone contributors are their own.

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks