[erlang-questions] Broken ipv6 behavior?

Tony Rogvall tony@REDACTED
Wed Apr 9 02:40:59 CEST 2008


I you do this:

inet_db:set_lookup([dns]).
inet_db:add_ns({A,B,C,D}).  %% Name server must be IPv4, there is a  
fixme in inet_db.
inet:getaddr("ipv6.google.com", inet6).
{ok,{8193,18528,0,4097,0,0,0,104}}

/Tony


On 9 apr 2008, at 01.42, Matthew Dempsky wrote:

> On Tue, Apr 8, 2008 at 4:22 PM, Tony Rogvall <tony@REDACTED> wrote:
>> Make sure the {inet6, Bool} in the inetrc is set to true?
>>
>> See ERTS User's Guide / Inet configuration.
>
> Makes no difference.  DNS cache still only shows an A query.
>
> matthew@REDACTED:/tmp$ echo '{inet6, true}.' > inetrc
> matthew@REDACTED:/tmp$ erl -kernel inetrc '"/tmp/inetrc"'
> 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}




More information about the erlang-questions mailing list