📜  C#域名到ip地址 - C#代码示例

📅  最后修改于: 2022-03-11 14:49:23.982000             🧑  作者: Mango

代码示例1
using System.Net;

foreach (IPAddress address in Dns.GetHostAddresses("www.google.com"))
{
   Console.WriteLine(address.ToString());
}