Solved

View the DNS cache on my local bind DNS server?

Posted on 2009-07-12
2
2,383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

687 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