* Dns.cs (Resolve): behave as MS. Agreed with Mads.
svn path=/trunk/mcs/; revision=3892
+2002-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * Dns.cs (Resolve): behave as MS. Agreed with Mads.
+
2002-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* IPAddress.cs: the icalls for sockets are endianness-aware. So I
}
/// <summary>
- /// This method resovles a DNS-style host name or IP
+ /// This method resolves a DNS-style host name or IP
/// address.
/// </summary>
/// <param name=hostName>
public static IPHostEntry Resolve(string hostName) {
if (hostName == null)
throw new ArgumentNullException();
- try {
- return GetHostByAddress(hostName);
- } catch (SocketException) {
- return GetHostByName(hostName);
- }
+
+ return GetHostByName (hostName);
}
}
}