IPv6 incorrect setup (or resolver bug? or http client bug?)

Sean Hinde sean.hinde@REDACTED
Tue Nov 2 11:02:05 CET 2004


On 2 Nov 2004, at 08:07, Ingela Anderton wrote:

>
> Matthias Lang wrote:
>>
>>  Matthias> Is 172.16.2.2 an ip6 address?
>>
>>  Ingela> No, it is a ipv4 address.
>>
>> Come to think of it, what does
>>
>>  inet:getaddr("localhost", inet6)
>>
>> return?
> 2>  inet:getaddr("localhost", inet6).
> {ok,{0,0,0,0,0,65535,32512,1}}
> 3> inet:getaddr("localhost", inet).
> {ok,{127,0,0,1}}

Interesting. on Mac OS X:

1> inet:getaddr("localhost", inet6).
{ok,{0,0,0,0,0,0,0,1}}

Sean




More information about the erlang-questions mailing list