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

Fredrik Thulin <>
Tue Nov 2 11:28:03 CET 2004


On Tuesday 02 November 2004 11.02, Sean Hinde wrote:
...
> Interesting. on Mac OS X:
>
> 1> inet:getaddr("localhost", inet6).
> {ok,{0,0,0,0,0,0,0,1}}

Localhost is 127.0.0.1 in IPv4 and ::1 in IPv6, so the above seems 
correct to me.

In IPv6 addresses, :: expands to 'as many zeros as possible', so ::1 is 
really 0000:0000:0000:0000:0000:0000:0000:0001 and 2001:6b0:5:300::53 
(one of our nameservers) is just a shorter way of saying 
2001:06b0:0005:0300:0000:0000:0000:0053.

/Fredrik



More information about the erlang-questions mailing list