Solved

View the DNS cache on my local bind DNS server?

Posted on 2009-07-12
2
2,374 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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 …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now