Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Sep 2000 02:14:08 +0100
From:      John Murphy <bigotfo@bigfoot.com>
To:        questions@freebsd.org
Subject:   Re: caching DNS server (was DNS resolving by internal network)
Message-ID:  <lu%2ByOe1dNrVz%2BYNijYPlWPyzm=Om@4ax.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?lu%2ByOe1dNrVz%2BYNijYPlWPyzm=Om>