Solved

View the DNS cache on my local bind DNS server?

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting up static IP - Ubuntu server 16.04 12 61
Why does my ISP's DNS resolve a non-existent domain as localhost ? 10 41
Dns issues 4 35
options for ipv4 failover 2 25
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…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

775 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