C#根据ip地址获取主机名
string IPAdress = "127.0.0.1"; IPHostEntry IPHostEntryObject = Dns.GetHostEntry(IPAdress); Console.WriteLine(IPHostEntryObject.HostName);
C#根据ip地址获取主机名
string IPAdress = "127.0.0.1"; IPHostEntry IPHostEntryObject = Dns.GetHostEntry(IPAdress); Console.WriteLine(IPHostEntryObject.HostName);