Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks,

  • Charlie
share|improve this question
add comment

3 Answers

up vote 1 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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.