Bug#618315: Acknowledgement (libsocket-getaddrinfo-perl: README.Debian misrepresents the nature of the bin/get{addr, name}info binaries)

Nicholas Bamber nicholas at periapt.co.uk
Tue Mar 15 22:38:52 UTC 2011


Paul,
	Thanks for all the extra information. At the moment our intention is to 
incorporate all the extra information into README.Debian. The objection 
against putting these scripts into $PATH,
was that the names were not really clear enough. I think if we could 
change the names to "socket_getaddrinfo" and "socket_getnameinfo" it 
would go through.


	On an unrelated matter, as the author of IO::Socket::IP, I wonder if 
you have any insight into why IO::Socket::INET does not support IPv6.

Nicholas

On 14/03/11 10:22, Paul LeoNerd Evans wrote:
> In fact, case in point... The reason I was wanting to use getaddrinfo in
> the first place, was to debug why a server of mine was listening on
> [::1] rather than 127.0.0.1; the relevant output was:
>
> ---
>
> $ getaddrinfo --passive --service 8034
> Resolved host '', service '8034'
>
> socket(AF_INET , SOCK_STREAM, IPPROTO_TCP) + '0.0.0.0:8034'
> socket(AF_INET , SOCK_DGRAM , IPPROTO_UDP) + '0.0.0.0:8034'
> socket(AF_INET , SOCK_RAW   , IPPROTO_IP ) + '0.0.0.0:8034'
> socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) + '[::]:8034'
> socket(AF_INET6, SOCK_DGRAM , IPPROTO_UDP) + '[::]:8034'
> socket(AF_INET6, SOCK_RAW   , IPPROTO_IP ) + '[::]:8034'
>
> $ getaddrinfo --service 8034
> Resolved host '', service '8034'
>
> socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) + '[::1]:8034'
> socket(AF_INET6, SOCK_DGRAM , IPPROTO_UDP) + '[::1]:8034'
> socket(AF_INET6, SOCK_RAW   , IPPROTO_IP ) + '[::1]:8034'
> socket(AF_INET , SOCK_STREAM, IPPROTO_TCP) + '127.0.0.1:8034'
> socket(AF_INET , SOCK_DGRAM , IPPROTO_UDP) + '127.0.0.1:8034'
> socket(AF_INET , SOCK_RAW   , IPPROTO_IP ) + '127.0.0.1:8034'
>
> ---
>
> This sort of direct observation of glibc's behaviour is not possible
> using 'dig' or 'nslookup'.
>
>
>
>
> _______________________________________________
> pkg-perl-maintainers mailing list
> pkg-perl-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-perl-maintainers




More information about the pkg-perl-maintainers mailing list