in reply to AnyEvent::DNS is effectively synchronous?
in thread Async DNS with LWP
You get ten times the "one domain", because you print $domain 10 times. What value would you $domain to have at which time?
Looking at the documentation of AnyEvent::DNS, the SYNOPSIS section shows how to retrieve results from a query. I'm not sure what problems you have with that.
If you want to do a callback-driven approach, take a look at the AnyEvent::DNS::srv subroutine. Again, the usage seems quite straightforward, as the resolved IPs get passed as parameters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: AnyEvent::DNS is effectively synchronous?
by jc (Acolyte) on Oct 05, 2010 at 12:51 UTC | |
|
AnyEvent::HTTP usage
by jc (Acolyte) on Oct 05, 2010 at 14:05 UTC | |
by Corion (Patriarch) on Oct 05, 2010 at 14:11 UTC | |
by jc (Acolyte) on Oct 05, 2010 at 15:01 UTC | |
by Corion (Patriarch) on Oct 05, 2010 at 15:47 UTC |