Networking Forums

Networking Forums > Computer Networking > Linux Networking > Bind as caching server

Reply
Thread Tools Display Modes

Bind as caching server

 
 
Doug Laidlaw
Guest
Posts: n/a

 
      04-13-2004, 01:01 PM
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?

Doug.
--
Don't knock the weather. If it didn't change once in a while, nine out of
ten people couldn't start a conversation.
-Kin Hubbard

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      04-13-2004, 01:55 PM
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.)

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
=?iso-8859-2?Q?Rados=B3aw?= Grzanka
Guest
Posts: n/a

 
      04-13-2004, 05:01 PM
On 2004-04-13, 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.


If you are on dialup pdnsd is made spacially for you. I'm using it for
years and it works good.

>
> Out of curiosity, and to learn a bit, is the list of cached addresses
> available for viewing in a file?


pdnsd can't (AFAIK)

Best Regards,
Radoslaw

--
"Oceniaj± mnie, choæ nic o mnie nie wiedz±. To dlatego jestem sam" - Shrek
================================================== =========================
e-mail: sad[na]rpg[kropka]pl JID: radekg[na]jabber[kropka]atman[kropka]pl
 
Reply With Quote
 
Owen Jacobson
Guest
Posts: n/a

 
      04-14-2004, 12:48 AM
On Tue, 13 Apr 2004 23:01:26 +1000, Doug Laidlaw 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?


If you have 'rndc' as part of your bind distribution, 'rndc dumbdb' will
dump the cache to $VAR/named_dump.db in a readable format.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

 
Reply With Quote
 
Doug Laidlaw
Guest
Posts: n/a

 
      04-14-2004, 01:20 AM
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.

Doug.
--
People want economy and they will pay any price to get it.
- Lee Iacocca.

 
Reply With Quote
 
Doug Laidlaw
Guest
Posts: n/a

 
      04-14-2004, 01:22 AM
Rados?aw Grzanka wrote:

> On 2004-04-13, 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.

>
> If you are on dialup pdnsd is made spacially for you. I'm using it for
> years and it works good.
>
>>
>> Out of curiosity, and to learn a bit, is the list of cached addresses
>> available for viewing in a file?

>
> pdnsd can't (AFAIK)
>
> Best Regards,
> Radoslaw
>

Thanks Radoslaw. I will investigate it.

Doug.
--
The best car safety device is a rear-view mirror with a cop in it.
- Dudley Moore.
(Pity computer security isn't that cheap.)
 
Reply With Quote
 
LittleJohn
Guest
Posts: n/a

 
      04-14-2004, 01:45 PM
Owen wrote:

> If you have 'rndc' as part of your bind distribution, 'rndc dumbdb' will
> dump the cache to $VAR/named_dump.db in a readable format.


If you did a standard installation of 9.1 and used Pat's caching
example, the command is 'rndc dumpdb' and the resulting file is:
/var/named/named_dump.db - It's a neat little utility.

LittleJohn
Madison, AL


 
Reply With Quote
 
LittleJohn
Guest
Posts: n/a

 
      04-14-2004, 01:48 PM
LittleJohn wrote:

> Owen wrote:
>
>> If you have 'rndc' as part of your bind distribution, 'rndc dumbdb' will
>> dump the cache to $VAR/named_dump.db in a readable format.

>
> If you did a standard installation of 9.1 and used Pat's caching
> example, the command is 'rndc dumpdb' and the resulting file is:
> /var/named/named_dump.db - It's a neat little utility.


Oops... That should say "Slackware 9.1"

Littlejohn
Madison, AL
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      04-15-2004, 07:24 AM
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/
 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      04-25-2004, 09:07 AM
Doug Laidlaw <(E-Mail Removed)> said:
>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?


Depending on your bind version, you should have either sig_named or
rndc command available for controlling the bind. See manual pages
(or command helps) for these to find out the correct syntax for dumping
the cached data.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server accelerator options: Squid, apache's built-in web caching orhardware "solutions" lbrtchx@gmail.com Linux Networking 0 01-12-2008 09:42 AM
Caching using 2003 Server Seamus Windows Networking 3 06-29-2005 03:55 PM
How do DNS Clients use a Caching only or Secondary DNS Server with Dynamic Updats? Brian Whiting Windows Networking 3 02-13-2005 05:34 PM
BIND caching question: resolve vs forwarder Al. C Linux Networking 11 12-08-2004 01:44 AM
Caching only name server * Tong * Linux Networking 3 10-23-2003 01:17 AM



1 2 3 4 5 6 7 8 9 10 11