日期:2014-05-20 浏览次数:20719 次
IPHostEntry hostInfo = Dns.GetHostByName(hostString); Console.WriteLine("Host name : " + hostInfo.HostName); Console.WriteLine("IP address List : "); for(int index=0; index < hostInfo.AddressList.Length; index++) { Console.WriteLine(hostInfo.AddressList[index]); }