- string IPAdress = "127.0.0.1";
- IPHostEntry IPHostEntryObject = Dns.GetHostEntry(IPAdress);
- Console.WriteLine(IPHostEntryObject.HostName);
- //该片段来自于http://www.codesnippet.cn/detail/270520133596.html
来源: http://www.codesnippet.cn/detail/270520133596.html