Re: dnscache memory requirements for large number of server files
Scott Gifford <[email protected]> Tue, 7 Sep 2010 14:18:53 -0400
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 7, 2010 at 12:44 PM, Lloyd Standish <[email protected]> wrote: > Hi Daryl and Jeff, > Thanks for the information. I agree that a linear search would not be a > good idea. Adding some sort of hashed lookup sounds like the way to go > here. I'm not very experienced at C (my experience is primarily in perl and > bash) and I have little time. Going a bit off-topic for the list I know, but based on your comments Lloyd, you may want to look at the Perl module Net::DNS::Nameserver: http://search.cpan.org/search?query=Net::DNS::Nameserver&mode=all I have had fantastic luck using it to solve small, strange DNS problems like the one you are describing. You could put an instance of dnscache in front of it to handle the caching and get answers without going to the Perl code, but really for these sorts of things Perl is pretty fast. Just a random idea, I know, but maybe it will be helpful. ------Scott.