top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to clear DNS cache?

+1 vote
598 views

My system is set to go directly to the OpenDNS name servers for DNS resolution. However, the results I get from "nslookup" differ from what I get if I query the same name server from another machine with the same resolv.conf settings.

That leads me to believe that DNS info is being cached locally somewhere. I don't have bind or nscd installed.

Where is this caching taking place and how can I clear/flush it?

posted May 20, 2014 by Anderson

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

I am assuming that you are using some of the linux variant and After a quick google it seems there is no "central" cache used anymore (previously nscd service maintained a central cache, but it is not installed by default atleast on fedora). If this is installed at you, you may want to restart the relevant service

nscd.x86_64 : A Name Service Caching Daemon (nscd).

also if-down/if-up may clear the app specific caches

answer May 20, 2014 by Jagan Mishra
If using nscd, restarting it does *not* clear its cache. You need to  do something like:
nscd --invalidate=hosts
Similar Questions
+4 votes

how to clear cache memory from browser using php?

+3 votes

How can we implement an LRU cache using just a single container i.e. map or unordered_map?

Expected operations:
1. find(key_t) - find a certain value in cache
2. insert(key_t, value_t) - insert a new value to the cache

+1 vote

I had a couple *.iso disks in my CD/DVD drive recently. I had looked at the images, but did not install. Now, i have a software update prompt and when I go to install, I am asked to put the two iso's in the drive. If I cancel the request and try to continue with the updates, it fails to complete them.

My google efforts have failed to produce a solution to the problem. How do I clean this up so that I can get back to regular updates?

...