When calling the GetHostAddresses in an IPv6 environment, Get Exception System.Net.Dns.Error_11001
test code
Dns.GetHostAddresses(“ipv6.google.com”);
it’s maybe mono bug
https://github.com/mono/mono/issues/6940
it’s ios device only bug
i hope fix it.
thanks
// test code
var addresses = Dns.GetHostAddresses(“ipv6.google.com”);
foreach (var address in addresses)
{
Debug.Log(address.ToString());
}
// exception
SocketException: Could not resolve host ‘ipv6.google.com’ at System.Net.Dns.Error_11001 (System.String hostName) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.hostent_to_IPHostEntry (System.String originalHostName, System.String h_name, System.String[ ] h_aliases, System.String[ ] h_addrlist) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.GetHostByName (System.String hostName) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.GetHostAddresses (System.String hostNameOrAddress) [0x00000] in <00000000000000000000000000000000>:0