note
zwon
That's because you are trying to connect to <c>http</c> service:
<c>
my $handle; $handle = new AnyEvent::Handle
connect => [$host => 'http'],
</c>
It tries to find the [wp://SRV record] for http service on <c>$host</c>. Replace it with the port number:
<c>
connect => [$host => 80],
</c>
and it will just resolve the host name.
1018391
1018391