On Wed, 14 Apr 2004, Doug Laidlaw <(E-Mail Removed)> wrote:
> David Efflandt wrote:
>
>> On Tue, 13 Apr 2004, Doug Laidlaw <(E-Mail Removed)> wrote:
>>> I am on a dialup connection to the Internet and have installed Bind to
>>> speed
>>> things up a bit. It seems to be helping.
>>>
>>> Out of curiosity, and to learn a bit, is the list of cached addresses
>>> available for viewing in a file?
>>
>> You do not say which bind, but typically cache is only maintained in RAM
>> because the info could be outdated if reloaded later. The cache is
>> flushed if you restart named.
>>
>> You can use 'dig' to tell how long it will be until a particular name
>> expires from your cache (default units are seconds unless followed by m,
>> h, d, etc.)
>>
> Thanks, David. Mdk installs Bind 9. What I want is something that will
> keep lookups between one bootup and the next, so that for example, there
> will be a local reference to my bank's IP address. If that has to be
> looked up afresh each day (and I use it only once a day,) the whole thing
> seems pointless. pdnsd http://www.phys.uu.nl/~rombouts/pdnsd.html
> (mentioned by Radoslaw) claims to write the cache to the HD on exit.
> This sounds like what I need.
To use that cache file, you would need to use the -x switch for named,
however, that says the following:
-x cache-file
Load data from cache-file into the cache of the
default view.
Warning: This option must not be used. It is only
of interest to BIND 9 developers and may be removed
or changed in a future release.
Also, what if your bank does load balancing or changes their DNS? The day
old reloaded cache data may point to the wrong IP (not sure if cache
expire times would time down just while named is running, or from when
data was originally fetched).
--
David Efflandt - All spam ignored
http://www.de-srv.com/