Ios Ipv6 Bug

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

unity 2018.3.11f1
il2cpp

Can you submit a bug report to Unity for this issue?

submit issue
https://fogbugz.unity3d.com/default.asp?1148790_nv0e5j2dbpr7hdp6

1 Like

Thanks, we will investigate this issue.