Update: Re: Problem resolving IPv6 addresses in R10B-0
Fredrik Thulin
ft@REDACTED
Fri Oct 8 10:39:15 CEST 2004
On Friday 08 October 2004 10.06, Fredrik Thulin wrote:
> Hi
>
> I realize that resolving IPv6 addresses is not yet documented and
> supported (?) but I want to do it anyways ;)
>
> With R9C-0 and R9C-2 this was easy :
>
> 1> inet:getaddrs("incomingproxy.devel.sip.su.se", inet6).
> {ok,[{8193,1712,5,2439,528,56575,65066,24970}]}
> 2>
>
> but with R10B-0 (on the same machine, Linux RH 7.3 based) I just get
> :
>
> 1> inet:getaddrs("incomingproxy.devel.sip.su.se", inet6).
> {error,nxdomain}
> 2>
Funny how you almost always figure something additional out right after
you ask about something on a list ;)
I found out that inet_res:gethostbyname("incomingproxy.devel.sip.su.se",
inet6) actually worked on my Linux box with R10B-0, whilst
inet:gethostbyname("incomingproxy.devel.sip.su.se", inet6) did not
(returning {error,nxdomain}).
The thing seems to be that inet_db:res_option(lookup) reurns
differently. R9C-2 :
1> inet_db:res_option(lookup).
[file,dns]
2>
and R10B-0 :
1> inet_db:res_option(lookup).
[native,file]
2>
R10B-0 returns '[native,file]' on my FreeBSD box (see my previous mail)
too, but surely because a difference in how FreeBSD 'native' resolves
things it works there but not on Linux. Is it my Linux resolver library
that needs fixing, or is it R10B-0?
/Fredrik
More information about the erlang-questions
mailing list