Solved

View the DNS cache on my local bind DNS server?

Posted on 2009-07-12
2
2,379 Views
Last Modified: 2013-12-06
I have a caching BIND dns server running on Debian. I want to view the cache. Where is it, and how can I access it?
0
Comment
Question by:itnifl
2 Comments
 
LVL 4

Accepted Solution

by:
Adraenyse earned 250 total points
ID: 24835672
By default, the dump file will appear as named_dump.db in your named directory, pending proper permissions. If you want to move the dump file, add this to your named.conf and execute rndc reload

options {
               dump-file "/var/named/named_dump.db";
}

If you have an options section already, simply add the dump-file variable inside it.

To dump the cache under BIND 8
ndc dumpdb

To dump the cache under BIND 9
rndc dumpdb

One caveat is under BIND 8, both the cache and the authoritative information will be dumped, under BIND 9, only the cache is dumped. You may have some sorting to do.

If you find an entry that you wish to delete without impacting the rest of the cache, and you are running BIND 9.2.0 or later, you can use the command rndc flushname domainname

The domain name does accept wildcards such as *.google.com

Hope that helps
Adrae
0
 
LVL 2

Author Closing Comment

by:itnifl
ID: 31602588
Thanks!
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Finding machines using a specific DNS server 6 59
DNS Forward 4 41
Time Sync Best Practice 13 45
Nee dhelp identifying the OS and how to access 7 36
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question