[erlang-questions] : Broken ipv6 behavior?

Rory Byrne <>
Wed Apr 9 12:26:57 CEST 2008


On Wed, Apr 09, 2008 at 11:04:11AM +0200, Raimo Niskanen wrote:
> 
> These functions seem to work on a MacOS X Leopard box
> in our lab, there I get:
> inet_gethost_native:gethostbyname("ipv6.google.com", inet6).
> inet_gethost[63317] (DEBUG):Saved domainname .google.com.
> inet_gethost[63317] (DEBUG):Created worker[63418] with fd 3
> inet_gethost[63317] (DEBUG):Saved domainname .google.com.
> inet_gethost[63418] (DEBUG):Worker got request, op = 1, proto = 2, data = ipv6.google.com.
> {error,notfound}
> 
> Not strange since we do not have working IPv6 here at work.
> 

Is this only {error,notfound} when you use an {inet6, true} 
configuration? There should be no problem looking up AAAA
DNS records over IPv4:

    $ dig -4 aaaa ipv6.google.com
    ...
    ipv6.google.com.    9981  IN  CNAME  ipv6.l.google.com
    ipv6.l.google.com.  201   IN  AAAA   2001:4860:0:1001::68
    ...
    ;; SERVER: 213.133.100.100#53(213.133.100.100)
    ...

I only run Linux, so I can't test it myself - but I am 
interested.

Regards

Rory



More information about the erlang-questions mailing list