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

5 Answers 5

up vote 5 down vote accepted

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

echo %LOGONSERVER%
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: server.domain.com
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 example.com domain, you can RDC to "example.com" 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

 
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.