[erlang-questions] Broken ipv6 behavior?

Raimo Niskanen raimo+erlang-questions@REDACTED
Wed Apr 9 09:27:43 CEST 2008


On Tue, Apr 08, 2008 at 12:16:44PM -0700, Matthew Dempsky wrote:
> It seems like erlang's IPv6 support is broken on my laptop (OS X
> 10.5.1).  I have a publicly routable IPv6 address and can access
> ipv6.google.com fine, but inet:getaddr cannot resolve the IPv6 address
> even when asked for inet6.
> 
> When I look at our DNS cache logs or tcpdump output, I only see A type
> queries not AAAA type queries for ipv6.google.com from my laptop.
> 
> 
> matthew@REDACTED:~$ ping6 -c 3 ipv6.google.com
> PING6(56=40+8+8 bytes) 2001:470:805a:1:21b:63ff:feca:36df -->
> 2001:4860:0:1001::68
> 16 bytes from 2001:4860:0:1001::68, icmp_seq=0 hlim=56 time=178.045 ms
> 16 bytes from 2001:4860:0:1001::68, icmp_seq=1 hlim=56 time=186.902 ms
> 16 bytes from 2001:4860:0:1001::68, icmp_seq=2 hlim=56 time=181.385 ms
> 
> --- ipv6.l.google.com ping6 statistics ---
> 3 packets transmitted, 3 packets received, 0% packet loss
> round-trip min/avg/max = 178.045/182.111/186.902 ms
> 
> matthew@REDACTED:~$ erl
> Erlang (BEAM) emulator version 5.6.1 [source] [smp:2]
> [async-threads:0] [kernel-poll:false]
> 
> Eshell V5.6.1  (abort with ^G)
> 1> inet:getaddr("ipv6.google.com", inet6).
> {error,nxdomain}

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.

> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list