LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2002, 01:15 PM   #1
Supp0rtLinux
Member
 
Registered: Dec 2001
Location: Carlsbad
Distribution: LFS 4.0 (www.linuxfromscratch.org)
Posts: 44

Rep: Reputation: 15
Question Named cache kept through restart or reboot


I use a laptop and connect to DHCP servers at work, home, and various clients. I also use wireless (802.11b). To aid in DNS lookups, I run a caching only name server (named, not nscd). However, because I use a laptop, my local DNS cache is lost daily when I reboot, or anytime named is restarted.

Is there a way of telling named to keep my DNS cache through reboots and restarts? If so, can it be set up to keep say 5 days worth of cache? (obviously I don't want it to keep it forever)...

Any suggestions on specifics?

AD
 
Old 01-21-2002, 01:48 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: Named cache kept through restart or reboot

Quote:
Originally posted by Supp0rtLinux
I use a laptop and connect to DHCP servers at work, home, and various clients. I also use wireless (802.11b). To aid in DNS lookups, I run a caching only name server (named, not nscd). However, because I use a laptop, my local DNS cache is lost daily when I reboot, or anytime named is restarted.

Is there a way of telling named to keep my DNS cache through reboots and restarts? If so, can it be set up to keep say 5 days worth of cache? (obviously I don't want it to keep it forever)...

Any suggestions on specifics?

AD
named does not keep its cache on disk. It's only kept in memory, thus when you kill/restart the named daemon (rebooting the system is done way of accomplishing that) the cache is lost.

There is no feature in named to keep the cache on disk, so you're going to have to download the source and rewrite named to keep the cache on disk instead of in memory.

How to do this? That I can't help you with. Perhaps you're lucky and somebody else has done this already and made a patch available somewhere. I'd say try http://www.google.com to try to find it.
 
Old 01-21-2002, 05:11 PM   #3
Supp0rtLinux
Member
 
Registered: Dec 2001
Location: Carlsbad
Distribution: LFS 4.0 (www.linuxfromscratch.org)
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks... the explanation is appreciated...
I'll search google... thank goodness for open source s/w... at least I know I can recompile it (though figuring out how to may be another story)... but if this were windows I'd be out of luck...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot restart, reboot, or shutdown slimfadey Linux - Newbie 3 04-28-2005 07:07 PM
Device named with mkfifo disappears on reboot ColKurtz Linux - Newbie 1 01-28-2005 10:46 PM
reboot and restart problem Fedora Dannydy Linux - Hardware 3 10-13-2004 07:14 PM
Do I need to restart Named after making DNS changes? imsam Linux - Networking 7 07-24-2004 01:02 PM
Always have to reboot to restart dsl sh1ft Slackware 8 04-21-2004 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration