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.

Company workstations belong to several domains and I have to find out exact Workstation domain by workstation IP. Is it possible from command line or do I have to call an administrator ?

Thank you in advance!

share|improve this question

3 Answers 3

up vote 3 down vote accepted

You can probably do something with reverse DNS. For a start, type in:

ping -a ip.address.here

at a Windows command line and, if you're lucky, you'll get a response like the following:

Pinging Laptop-Name.Domain.Com [ip.address.here] with 32 bytes of data:

But, then again, you may not! Try it with a PC on a different domain to really see.

share|improve this answer
    
Thank you, @Dan, I'll try that soon! –  Andrew Florko Nov 7 '11 at 9:24

You could also try nslookup IP.Address.here to see which computer is behind the address.

share|improve this answer

There's no direct correlation between a hosts ip address and it's domain membership. As the other answers suggest, you could perform a reverse lookup on the ip address to see what FQDN is returned and determine from the DNS suffix what AD domain the workstation might be joined to, but there are several caveats:

This assumes that a reverse lookup zone is configured and that PTR records are registered in the zone for the workstations.

This assumes that the workstations are not receiving DHCP option 15 (DNS domain name) from a DHCP server if the workstations are configured to get their ip address/configuration from a DHCP server.

For example, there's no discernable difference in a PTR record for a domain joined workstation and a non-domain joined workstation if the workstations receive their ip address/configuration from DHCP and DHCP option 15 is used and is configured with a DNS suffix that matches the AD domain name.

share|improve this answer

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.