public bool isResolvable(string host) {
GlobalLog.Print("WebProxyScriptHelper::isResolvable() host:" + ValidationHelper.ToString(host));
if (host==null) {
if(Logging.On)Logging.PrintWarning(Logging.Web, SR.GetString(SR.net_log_proxy_called_with_null_parameter, "WebProxyScriptHelper.isResolvable()", "host"));
throw new ArgumentNullException("host");
}
IPHostEntry ipHostEntry = null;
try
{
ipHostEntry = Dns.InternalGetHostByName(host);
}
catch { }
if (ipHostEntry == null)
{
return false;
}
for (int i = 0; i < ipHostEntry.AddressList.Length; i++)
{
if (ipHostEntry.AddressList[i].AddressFamily == AddressFamily.InterNetwork)
{
return true;
}
}
return false;
}