To dump the BIND9 cache do:
# rndc dumpdb -cache
This will generate a ‘named_dump.db’ file in the cache directory of the BIND server. To display the file execute the following:
# cat /var/cache/bind/named_dump.db
Other possible cache-dump file location is:
/var/named/data/cache_dump.db
To clear the cache execute:
# rndc flush
References
BIND9 – View DNS Cache