Dns.GetHostByAddress(IPAddress ip) : Dns « System.Net « C# / C Sharp by API






Dns.GetHostByAddress(IPAddress ip)

  

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);

      foreach(string alias in iphe.Aliases)
      {
         Console.WriteLine("Alias: {0}", alias);
      }
   }
}

   
    
  








Related examples in the same category

1.Dns.EndResolve(IAsyncResult ar)
2.Dns.GetHostByName
3.Dns.GetHostEntry(String value)
4.Dns.GetHostName()
5.Dns.Resolve