A configured domain name service ( DNS ) server such as Bind may store previously resolved domain names to a local cache. By default the cached records will be stored for 7 days. The cache can be reused for future domain name resolutions. First, let's see how we can view all cached domain name resolutions:
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-view-and-clear-bind-dns-server-s-cache-on-linux
John Doe
In Centos 7, ouput folder is “/var/named/data/” and dump of cache is named “cache_dump.db”
Lubos Rendek -> John Doe
Hi John,
Updated ! Thank you…
In Debian 11, ouput folder is “/var/cache/bind/” and dump of cache is named “named_dump.db”