Skip Menu |

This queue is for tickets about the POE-Component-Client-DNS CPAN distribution.

Report information
The Basics
Id: 41177
Status: rejected
Priority: 0/
Queue: POE-Component-Client-DNS

People
Owner: Nobody in particular
Requestors: nuclon [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Cache DNS lookup results
I'm working on crawling software and I'd like to have an ability to cache lookup responses due big requests amount to the same host. I think it should be useful not only for me :)
On Mon Nov 24 07:54:54 2008, http://nuclon.myopenid.com/ wrote: Show quoted text
> I'm working on crawling software and I'd like to have an ability to > cache lookup responses due big requests amount to the same host. > I think it should be useful not only for me :)
DNS caching is complex and would require a lot of code and options. I'm not sure when I will be able to get to this. In the meantime, you could set up a localhost named that forwards requests upstream and caches responses. You would be able to configure it for your particular needs, and its cache would persist between application runs---which is probably a good thing in your case.
I've just released POE::Component::Resolver which uses your OS resolver instead of a Net::DNS client. It may be more appropriate for what you want to do. If not, I'll welcome contributions to add caching to POE::Component::Client::DNS, but a localhost caching named is probably sufficient for most needs.