Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir/Madam,

I am in the need of getting the System names based on the IP address I have. I have a list of IPs in my network. But I want the DNS Name(System Name) for the provided IP address.Please help me.Thanks in advance.
Posted
Comments
Ankur\m/ 23-Mar-11 2:30am    
Oh sorry, my answer was for a web application. I deleted my answer.

Hi,

The DNS class should help you to resolve the name, see: http://msdn.microsoft.com/en-us/library/system.net.dns.aspx[^]
 
Share this answer
 
Hi,

You can try out this command

nbtstat -a xxx.xxx.xxx.xxx

or ping -a xxx.xxx.xxx.xxx

that means you have to do it for many each IP.

Cheers!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900