IPHostEntry.HostName : IPHostEntry « System.Net « C# / C Sharp by API






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

1.IPHostEntry.AddressList
2.IPHostEntry.Aliases