Asp.NetIPアンチドメイン名/ホスト名


public string GetHostNameByIp( string ip) {      ip = ip.Trim();      if (ip == string .Empty)          return string .Empty;      try      {          // Ping          if ( this .Ping(ip))          {              System.Net.IPHostEntry host =              System.Net.Dns.GetHostEntry(ip);              return host.HostName;          }          else              return string .Empty;      }      catch (Exception)      {          return string .Empty;      } }
優特建駅を転載する:http://www.youtiy.com/Articles/Item.aspx?Id=256