Details about Problem
Currently the NativeSocket.getaddrinfo implementation can return byte arrays with length of 16 even for IPv4 addresses. With nanoframework/System.Net#217 applied, DNS lookups fail to properly resolve due to them being incorrectly seen as IPv6 addresses.
Description
We should re-evaluate the getaddrinfo implementation to allow it to work properly in the future with the nanoframework/System.Net#217.