How to view and clear Bind DNS server's cache on Linux -

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


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…