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

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
up vote 4 down vote accepted

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

ping -a

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

Pinging Laptop-Name.Domain.Com [] 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

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

You could also try nslookup to see which computer is behind the ip address. (see nslookup command)

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.