|Subject:||optimizing configure to stop useless DNS lookups|
Hi, Like already reported in: OpenBSD does DNS lookups if one tries to getaddrino(ipv4_address,AF_INET6,..) This causes useless DNS lookups in a simple program like IO::Socket::INET6->new( '127.0.0.1:22' ) This behavior seems to be right according to the interpretation of the RFC by the famous stevens, see "UNIX Network Programming" Page 323 (you may find it with google book search). These useless DNS lookups are triggered by an IMHO suboptimal algorithm to find the right pair of local and remote addresses. I think it can be done much more efficient with a maximum of 2 getaddrinfo calls, and as an added bonus it doesn't do the useless DNS lookups anymore. Attached is a new version of IO::Socket::INET6. the only difference to version 2.57 is a rewrite of sub configure. All tests pass. I've classified the bug as important, because the useless DNS lookups really slow down the connections on OpenBSD.
Message body is not shown because it is too large.