static void Main(string[] args) { System.Net.IPHostEntry iPHostEntry = System.Net.Dns.GetHostEntry("www.chicai.group"); System.Net.IPAddress[] address = iPHostEntry.AddressList; Console.WriteLine(address[0].ToString()); Console.WriteLine(System.Net.Dns.GetHostAddresses("www.chicai.group")[0]); Console.ReadKey(); }