IPHostEntry.HostName
using System;
using System.Net;
class MainClass
{
public static void Main(string[] argv)
{
IPAddress test = IPAddress.Parse("64.200.123.1");
IPHostEntry iphe = Dns.GetHostByAddress(test);
Console.WriteLine("Information for {0}", test.ToString());
Console.WriteLine("Host name: {0}", iphe.HostName);
}
}
Related examples in the same category