LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-02-2011, 05:43 PM   #1
raevin
Member
 
Registered: Jul 2004
Distribution: Arch Linux, Ubuntu
Posts: 80

Rep: Reputation: 16
BIND question in regard to caching


This is different than my previous thread, and isn't a problem, but more so a question that I hope is do-able.

As like everyone else, I have more storage space than I do RAM. I have BIND set up as a caching name server, and it works as should. But, what I want to do is make it so the caching is saved to disk, instead of RAM.

I know saving data to RAM is done because accessing memory is faster than disk, but I would like to at least have that back up option as right now BIND is running on a VPS that has max 256 MB memory.

Tl;dr: I want to use disk caching instead of RAM caching for BIND.
 
Old 09-04-2011, 10:27 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by raevin View Post
As like everyone else, I have more storage space than I do RAM. I have BIND set up as a caching name server, and it works as should. But, what I want to do is make it so the caching is saved to disk, instead of RAM.
Bind doesn't really do this, by default, and for good reason. Given that DNS lookups have a very limited time to live, saving lookup results to hard disk, on a server that is rarely rebooted, just slows things down and adds to the load on the server.

Using 'aged-out' lookups is likely to break things - not many things and not at all consistently, so it isn't really a good idea to break networking, however attractive it may appear.

I believe that Pdns can do what you ask for, but whether, when you try it, it turns out to be what you want is another matter entirely. Also note that for a server that is on continuously, there can be no advantage and there are disadvantages.
 
  


Reply



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
Having hell setting up caching Name server using bind Widgeteye Linux - Server 1 04-02-2011 08:28 AM
Caching-only name server to forward queries-Bind vwtech Linux - Software 1 02-14-2011 04:32 PM
[SOLVED] bind caching nameserver: views/firewalling (RHEL5/CentOS5) deadeyes Linux - Server 4 10-15-2009 09:52 AM
Strange results with local BIND caching name-server pixel_surgeon Linux - Server 2 04-04-2009 09:05 AM
bind caching dns question FunkyRes Linux - Software 4 05-04-2005 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:18 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