?
Solved

View the DNS cache on my local bind DNS server?

Posted on 2009-07-12
2
Medium Priority
?
2,386 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
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
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 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