IPAddress[] IPs
=
Dns.GetHostAddresses(
"
www.by84.com
"
);
foreach (IPAddress ip in IPs)
{
Response.Write(ip.ToString() + " <br> " );
}
foreach (IPAddress ip in IPs)
{
Response.Write(ip.ToString() + " <br> " );
}
别忘了引用System.Net命名空间.