AnyEvent::DNS Timeout
James Baer
jamesfbaer at gmail.com
Fri Feb 7 15:21:05 CET 2014
Thank you for the detailed response. I think I found what I am looking for
using $resolver->request. I think really just need to know if the status of
the request is "servfail". I originally said timeout b/c that is what is
reported from other lookup utilities.
I will also have a look at some of those other libraries you mentioned.
Thanks
On Thu, Feb 6, 2014 at 8:16 PM, Marc Lehmann <schmorp at schmorp.de> wrote:
> On Thu, Feb 06, 2014 at 11:20:24AM -0500, James Baer <jamesfbaer at gmail.com>
> wrote:
> > Hello - new to AE here. Is there anyway to find out if a request actually
> > timed out using the resolve method?
>
> That question is not well-defined, for the following reason: it is
> possible for a request to time out, find no data and find data, all at the
> same time. From a resolver standpoint, these are not distinguishable in
> general.
>
> Keep in mind that AnyEvent::DNS is a (stub) resolver, not a dns
> client/debug library, so it can ask multiple servers for multiple domains
> names, and timeout or nodata returns do not mean the request time outed or
> found no data.
>
> I understand that it is tempting to use AnyEvent::DNS as some kind of dns
> debugging library, but that's not what it is, or was designed for.
>
> You can send individual requests and build your own resolver using other
> libraries - for example, libadns can be used via EV::ADNS, which allwos
> you to send individual request without recursion to nameservers of your
> choice.
>
> --
> The choice of a Deliantra, the free code+content
> MORPG
> -----==- _GNU_ http://www.deliantra.net
> ----==-- _ generation
> ---==---(_)__ __ ____ __ Marc Lehmann
> --==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
> -=====/_/_//_/\_,_/ /_/\_\
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20140207/803a9241/attachment.html>
More information about the anyevent
mailing list