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