[erlang-questions] Broken ipv6 behavior?

Mikael Magnusson mikma264@REDACTED
Wed Apr 9 22:00:42 CEST 2008


Raimo Niskanen wrote:
> Give us the result of:
> $ uname -a
> $ cat /etc/resolv.conf
> $ erl
> 1> inet_gethost_native:control({debug_level,4}).
> 2> inet_gethost_native:gethostbyname("ipv6.google.com", inet6).
> 3> ets:tab2list(inet_db).
> 4> ets:tab2list(inet_hosts).
> 
> For starters.
> 

It looks beautiful on Debian Lenny/Sid GNU/Linux, which contains my IPv6 
patch:

1> inet_gethost_native:gethostbyname("ipv6.google.com", inet6).
{ok,{hostent,"ipv6.l.google.com",
              ["ipv6.google.com"],
              inet6,16,
              [{8193,18528,0,4097,0,0,0,104}]}}

(The patch is also used in Ubuntu.)

/Mikael



More information about the erlang-questions mailing list