From owner-freebsd-questions@FreeBSD.ORG Wed Nov 10 01:12:02 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B241316A4CE for ; Wed, 10 Nov 2004 01:12:02 +0000 (GMT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57EB643D1D for ; Wed, 10 Nov 2004 01:12:02 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004111010:11:40:381222.6712.2939587504 for ; Wed, 10 Nov 2004 10:11:40 +0900 (KST) Message-ID: <41916AD3.7020306@yahoo.com> Date: Wed, 10 Nov 2004 10:11:47 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041017 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Smith , FreeBSD References: <00e101c4c67d$19b32900$19c8a8c0@loriandsmith> <200411091930.20912.mayday@gmx.net> <010001c4c687$e01c1d40$19c8a8c0@loriandsmith> In-Reply-To: <010001c4c687$e01c1d40$19c8a8c0@loriandsmith> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:7.24) (by Terrace) Subject: Re: Caching DNS Server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 01:12:02 -0000 Andrew Smith wrote: > Ok I think I've got bind working correctly, in resolve.conf I've only > put 127.0.0.1 as the nameserver and I'm able to ping stuff on the > internet. Is there anyway I can test to see if it's actually caching my > requests? Where is the cache stored? The size of the cache you get like this, for example: $ top -U bind -n | grep named | awk '{print $6}' 4228K In /var/named/etc/namedb/named.conf I have following lines: # file created by 'rndc dumpdb' dump-file "/var/dump/named_dump.db"; # files created by 'rndc stats' statistics-file "/var/stats/named.stats"; memstatistics-file "/var/stats/named.memstats"; You can create these files with rndc command, but the files are not so easy to understand. Rob.