Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)...
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.