Bind as caching server

This is a discussion on Bind as caching server within the Linux Networking forums, part of the Linux Forums category; I am on a dialup connection to the Internet and have installed Bind to speed things up a bit. It ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-13-2004
Doug Laidlaw
 
Posts: n/a
Default Bind as caching server

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
  #2 (permalink)  
Old 04-13-2004
David Efflandt
 
Posts: n/a
Default Re: Bind as caching server

On Tue, 13 Apr 2004, Doug Laidlaw <laidlaws@myaccess.com.au> 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
  #3 (permalink)  
Old 04-13-2004
Radosław Grzanka
 
Posts: n/a
Default Re: Bind as caching server

On 2004-04-13, Doug Laidlaw <laidlaws@myaccess.com.au> 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
  #4 (permalink)  
Old 04-14-2004
Owen Jacobson
 
Posts: n/a
Default Re: Bind as caching server

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
  #5 (permalink)  
Old 04-14-2004
Doug Laidlaw
 
Posts: n/a
Default Re: Bind as caching server

David Efflandt wrote:

> On Tue, 13 Apr 2004, Doug Laidlaw <laidlaws@myaccess.com.au> 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
  #6 (permalink)  
Old 04-14-2004
Doug Laidlaw
 
Posts: n/a
Default Re: Bind as caching server

Rados?aw Grzanka wrote:

> On 2004-04-13, Doug Laidlaw <laidlaws@myaccess.com.au> 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
  #7 (permalink)  
Old 04-14-2004
LittleJohn
 
Posts: n/a
Default Re: Bind as caching server

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
  #8 (permalink)  
Old 04-14-2004
LittleJohn
 
Posts: n/a
Default Re: Bind as caching server

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
  #9 (permalink)  
Old 04-15-2004
David Efflandt
 
Posts: n/a
Default Re: Bind as caching server

On Wed, 14 Apr 2004, Doug Laidlaw <laidlaws@myaccess.com.au> wrote:
> David Efflandt wrote:
>
>> On Tue, 13 Apr 2004, Doug Laidlaw <laidlaws@myaccess.com.au> 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
  #10 (permalink)  
Old 04-25-2004
Juha Laiho
 
Posts: n/a
Default Re: Bind as caching server

Doug Laidlaw <laidlaws@myaccess.com.au> 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 Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0