Dns.GetHostName() : Dns « System.Net « C# / C Sharp by API






Dns.GetHostName()

  

using System;
using System.Net;

class MainClass
{
    public static void Main()
    {


        Console.WriteLine(Dns.GetHostName());
    }
}

   
    
  








Related examples in the same category

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