[erlang-questions] : Broken ipv6 behavior?
Matthew Dempsky
matthew@REDACTED
Wed Apr 9 20:23:46 CEST 2008
On Wed, Apr 9, 2008 at 3:41 AM, Matthew Dempsky <matthew@REDACTED> wrote:
> Testing at home with OS X (IPv6 link-local access only), I get
> {error,notfound} with or without {inet6, true}.
>
> ipv6.google.com's AAAA records still resolve fine with dig/host/etc.
I see the same behavior with a globally routable local IPv6 address.
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_gethost_native:control({debug_level,4}).
ok
2> inet_gethost[68255] (DEBUG):debug_level = 4
inet_gethost_native:gethostbyname("ipv6.google.com", inet6).
inet_gethost[68255] (DEBUG):Saved domainname .google.com.
inet_gethost[68255] (DEBUG):Created worker[68256] with fd 3
inet_gethost[68255] (DEBUG):Saved domainname .google.com.
inet_gethost[68256] (DEBUG):Worker got request, op = 1, proto = 2,
data = ipv6.google.com.
{error,notfound}
3> ets:tab2list(inet_db).
[{socks5_noproxy,[]},
{res_recurse,1},
{res_id,0},
{hostname,"pollux"},
{res_alt_ns,[]},
{cache_refresh_interval,3600000},
{res_inet6,false},
{socks5_port,1080},
{socks5_methods,[none]},
{res_timeout,2000},
{cache_size,100},
{res_domain,"local"},
{res_retry,3},
{res_ns,[]},
{res_lookup,[native,file]},
{sctp_module,inet_sctp},
{udp_module,inet_udp},
{tcp_module,inet_tcp},
{socks5_server,[]},
{res_search,["local"]},
{res_usevc,false}]
4> ets:tab2list(inet_hosts).
[{{10,0,1,195},inet,["pollux.local","pollux"]}]
More information about the erlang-questions
mailing list