Main Site Documentation

Issue with Dns.GetHostEntry


#1

As we all know a DNS lookup on www.google.com returns multiple IP addresses.

When I do the following I only get 1 IP address in the address list array:


var addresses = Dns.GetHostEntry("www.google.com").AddressList;

for (var ip in addresses)
{
    Debug.Print("IP: " + ip)
}


Am I doing something incorrectly or is it just a limitation of the .NetMF version of GetHostEntry?

Thanks,
Greg


#2

Thanks Andreā€¦been searching all morning and could not find anything definitive.

Greg