Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not even sure if this is the proper approach but I have a number of computers on our school network (domain) that I need to report the IP addresses for. All of these computers are contained in a single orgizational unit in the domain.

Is there a way to use Active Directory to get the IP addresses for each of the machines? I looked in the Attribute Editor in ADUC but didn't see this field. However, I did see the dNSHostName. Maybe there is a way to resolve that to an IP address in code somehow?

Is there a much easier way to accomplish something like this that i'm just missing?


  • Charlie
share|improve this question
up vote 2 down vote accepted

The DNS Manager should have a list of computer names and what IP address they have been assigned.

share|improve this answer
+1: DNS is a better bet than DHCP for this kind of thing. AD maintains the DNS for various reasons, and the name in the AD will be the same as the computer names in the OU. Additionally, if you have more than one subnet, they'll still all be in 1 DNS group, rather than broken out by subnet. – Satanicpuppy Jul 8 '10 at 18:59

To the best of my knowledge there is no way to achieve what you require through active directory. You may be able to look in your servers DNS to find both the IP's and Hostnames to export to a spreadsheet or other format.

You could also use an IP scanner such as angryIP scanner.

Hope this helps.

share|improve this answer

Through ADUC, I'm not sure you can get an IP from a hostname. You could look in the DHCP snap-in (if that's whats handing out addresses), check the DNS manager on the server or use a tool like Angy IP Scanner

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.