I know that on Windows I can issue
ipconfig /displaydns and I see the local DNS's cache content.
How can I list the DNS's cache content in Linux?
I would like to get as much as cross-distro solution as possible.
I don't know of a way to see the actual contents of the cache, though you can display statistics with
That can at least show you how efficient your cache is, though not exactly what it's resolving.
You may have other options if you're using an alternate caching tool, like DNSMASQ.
On Linux (and probably most Unix), there is no OS-level DNS caching unless
The practical upshot is that your linux system most probably does not do any OS-level DNS caching.
If you are using
Note that this is a total hack as there is seemingly no proper way to inspect the