[erlang-questions] : Broken ipv6 behavior?

Matthew Dempsky <>
Wed Apr 9 20:23:46 CEST 2008

On Wed, Apr 9, 2008 at 3:41 AM, Matthew Dempsky <> 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.

:~$ 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}).
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.
3> ets:tab2list(inet_db).
4> ets:tab2list(inet_hosts).

More information about the erlang-questions mailing list