Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我应该获取我提供的几个 IP 地址的域名作为输入。我猜这个过程叫做NSLOOKUP。但是,我想确认我是否正确。我正在寻找实现这一点并显示 MessageBox 输出的简单程序。
请投稿...
谢谢你的期待
IPAddress address = IPAddress.Parse("127.0.0.1"); IPHostEntry entry = Dns.GetHostEntry(address ); Console.WriteLine(entry.HostName);