문제

In my application, I should get the domain names of the few IP Addresses I give as Input. I guess this process is called NSLOOKUP. However, I would like to confirm if I'm right. Simple program to implement this and display a MessageBox output is what I look for.

Contributions please...

Thank you in anticipation

도움이 되었습니까?

해결책

IPAddress address = IPAddress.Parse("127.0.0.1");
IPHostEntry entry = Dns.GetHostEntry(address );
Console.WriteLine(entry.HostName);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top