From owner-freebsd-questions Sun Sep 3 18:14:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.screaming.net (smtp.screaming.net [212.49.224.20]) by hub.freebsd.org (Postfix) with ESMTP id AE2DC37B422 for ; Sun, 3 Sep 2000 18:14:29 -0700 (PDT) Received: from lexx.my.domain (dyn228-ras38.screaming.net [212.188.133.228]) by smtp.screaming.net (8.9.3/8.9.3) with SMTP id BAA27285 for ; Mon, 4 Sep 2000 01:17:18 GMT From: John Murphy To: questions@freebsd.org Subject: Re: caching DNS server (was DNS resolving by internal network) Date: Mon, 04 Sep 2000 02:14:08 +0100 Organization: The Organisation Reply-To: bigotfo@bigfoot.com Message-ID: X-Mailer: Forte Agent 1.6/32.525 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ben Smithurst wrote: >If you *just* want a caching nameserver, delete the "zone" blocks in >named.conf except for the zone block for the DNS root ('zone "."' or >some such). Then it should stop complaining about localhost.rev at >least. > >> The problem is that whenever I reboot or start the machine it dials >> my ISP! > >I think that's because named tries to contact the root servers at boot >time. One solution is not to reboot, another solution might be to not >use auto-dialling, at least for the first few minutes after rebooting; >after the first few minutes named should have given up trying to contact >the root servers. > >Another possibility is that some program is making a DNS query. No, I'm sure it was the former possibility. > >> I even tried creating /etc/namedb/s and chowned it as mentioned in >> named.conf. I'm not even sure that it's caching. There's nothing in >> /etc/namedb/s. > >It will only cache stuff in memory, so you won't see any of the cache on >disk. If you want to see what's in the cache, run 'ndc dumpdb' which >will save the cache somewhere, depending on where you configured it. Aha, I was hoping the cache would be to HD. As the whole system is powered down daily the caching won't be of much value to me. Thanks for your help though. Perhaps one day I'll have a _real_ server to mess with... bind looks scarey! John. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message