AnyEvent::DNS questions

Emmanuel Rodriguez emmanuel.rodriguez at gmail.com
Mon Mar 21 23:57:39 CET 2011


On Mon, Mar 21, 2011 at 20:30, Brane F. Gračnar
<brane.gracnar at planet9.si> wrote:
> On Monday 21 of March 2011 19:07:52 Marc Lehmann wrote:
>> On Mon, Mar 21, 2011 at 06:45:32PM +0100, "Brane F. Gračnar"
> <brane.gracnar at planet9.si> wrote:
>> > Is there a way to get TTL value of dns entry in resolve callback?
>>
>> Not at the moment - looking at the code, it seems I simply forgot to put it
>> into the result record.
>>
>> Unfortunately, this is now hard to change without breaking the API.
>
> Hmm, ok, what about specifying it as a last argument of callback?
>
> I was looking at AnyEvent::CacheDNS and it seems that it caches results
> forever...
>

AnyEvent::CacheDNS is meant to be a simple example on how to hook your
own cache resolver. For a long standing daemon you might want to
modify or subclass the module.

Also patches are welcome :)

Emmanuel Rodriguez



More information about the anyevent mailing list