[erlang-questions] IPv6 support in inet_gethost

Sergei Golovan sgolovan@REDACTED
Tue Nov 21 15:22:48 CET 2006


Hi!

As far as I understand, inet_gethost uses getipnodebyname and
getipnodebyaddr functions.

It seems that both functions aren't implemented in Linux (probably
they require some unusual libraries?).

Mikael Magnusson has sent a patch (attached, patch is for R11B-2) to
Debian bugs database. It adds IPv6 addresses resolution using
gethostbyname2 and gethostbyaddr.

I hope it will be useful not only for Debian users.

Best wishes!
-- 
Sergei Golovan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: otp_gethostbyname2_in6_addr.patch
Type: application/octet-stream
Size: 1596 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20061121/ffddce7a/attachment.obj>


More information about the erlang-questions mailing list