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?

  • why not run dsa.msc then connect to your domain?
    – tony roth
    Jun 24, 2010 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, 2010 at 16:47

5 Answers 5


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


You could use this command from cmd prompt:

gpresult /R

Then look for this line in the output:

Group Policy was applied from: server.domain.com
  • Or run "set" and look for LOGONSERVER
    – mfinni
    Jun 24, 2010 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 example.com domain, you can RDC to "example.com" and get one of the Domain Controllers.


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

ipconfig /all

  • 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, 2010 at 16:56

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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