title: IPv6 address to domain name
body: <p>I'm searching for a function that take an IPv6 address as argument and returns the domain name.</p>
  
  <p>To make it clear, 2a00:1450:8006::68 returns ipv6.google.com.</p>
  
  <p>(The aim is to give this domain name to the getaddrinfo function.)</p>
  
  <p>Thanks :-)</p>
  
  <p>edit1 : I've tried <code>getaddrinfo("2a00:1450:8006::68", "http", NULL, &amp;result);</code> , it returns "address family for hostname not supported" and <code>getaddrinfo("ipv6.google.com", "http", NULL, &amp;result);</code> return an error "no address is associated with hotname".</p>
  
  <p>EDIT2 : I agree with you, i've trouble with IPV6 system, I've tried <a href="http://test-ipv6.com/" rel="nofollow">http://test-ipv6.com/</a> and it appears that I've got no IPV6 adress but with <code>ifconfig</code> it returns :</p>
  
  <pre><code>adr inet6: fe80::15b:fcff:fe65:d516/64 Scope:Lien
  </code></pre>