Cc get NetBIOS and DNS computer names

From , 5 Years ago, written in C#, viewed 211 times.
URL https://pastebin.vip/view/0801b20e
  1. static string GetLocalHostName ()
  2. {
  3.    string netBiosName = System.Environment.MachineName;
  4.    //return netBiosName;
  5.  
  6.    // Following method is deprecated
  7.    // string dnsName =
  8.    //   System.Net.Dns.GetHostByName("LocalHost").HostName;
  9.  
  10.    string dnsName = System.Net.Dns.GetHostName();
  11.    return dnsName;
  12. }
  13. //csharp/4198

Reply to "Cc get NetBIOS and DNS computer names"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website