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 know the name of the Domain, but I need to RDC to the actual computer to add someone and the sysadmins are on vacation. Anyone know how I can figure out the IP for the DOMAIN?

share|improve this question
why not run dsa.msc then connect to your domain? – tony roth Jun 24 '10 at 15:46
I guess I wasn't clear enough, run this from your workstation it will automagically connect you to the correct domain. You'll need to do a runas to get it to work correctly – tony roth Jun 24 '10 at 16:47
up vote 5 down vote accepted

The environment variable %LOGONSERVER% stores the name of the Domain Controller that authenticated your logon.

share|improve this answer

You could use this command from cmd prompt:

gpresult /R

Then look for this line in the output:

Group Policy was applied from:
share|improve this answer
Or run "set" and look for LOGONSERVER – mfinni Jun 24 '10 at 16:45

If you just need to RDC to it, you can just type in your DNS Domain Name.
For example, if you're in the domain, you can RDC to "" and get one of the Domain Controllers.

share|improve this answer

Mostly AD will be the same as your DNS server which you can find by typing:

ipconfig /all

share|improve this answer
This is not necessarily true at all. Many places run bind, or use hosted DNS servers. My recommendation would be to perform an NSLOOKUP on your AD domain. That should give you an IP or list of IPs. Then do an NSLOOKUP on those IPs. There should be reverse records for DCs. A reverse lookup of those IPs will return the DC name hopefully. – Tatas Jun 24 '10 at 16:56

From the command prompt you can also run "systeminfo" which will echo the Logon Server and other info.

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.