[erlang-questions] : : Broken ipv6 behavior?

Matthew Dempsky <>
Wed Apr 9 20:13:31 CEST 2008


On Wed, Apr 9, 2008 at 9:03 AM, Raimo Niskanen
<> wrote:
>  In that case I can report that:
>  1> inet:gethostbyname("orange.kame.net", inet6).
>  {ok,{hostent,"orange.kame.net",[],inet6,16,
>              [{0,0,0,0,0,65535,52146,36290}]}}
>  works on:
>  Darwin hostname 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386
>  Which should be MacOS X Leopard

That's not the correct result though.  That's an IPv4 mapped address
for a node name that has actual IPv6 addresses.

Having IPv6 support is silly if the only hosts you can access are ones
that also have IPv4.



More information about the erlang-questions mailing list