Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

I just setup a domain called foo.local. It is running on an internal network that is being NATed out. The domain controller is running with a static IP address.

How do I get a windows 7 computer to join the domain?

Normally to join a domain you click Computer->Properties-> Change... -> Member of -> Domain

Then I input foo.local.

The problem is that the computer is trying to connect to the domain controller by a DNS name, and I don't have a DNS server running on the local network.

Is there a way I can tell Windows 7 to look at a static IP address to join the domain?

share|improve this question

marked as duplicate by Mokubai, Canadian Luke, Renan, Windos, Scott Mar 18 '13 at 17:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
how did you setup the domain? Do you have a Windows Server in place configured as "Domain Controller"? –  Tim Haegele Mar 16 '13 at 7:06
    
    
It is setup as a domain controller, and I've added several users. –  StaticMethod Mar 16 '13 at 15:56
    
If you edit your PC's ETC/HOSTS file to resolve the DC's IP, your PC will then find your DC on your internal network. The only other solution is to add a DNS server to a computer on your network, like on your Domain Controller, which can resolve all network addresses. –  Lizz Mar 16 '13 at 16:03
    
I didn't realize that having a DNS service record was required for Active Directory. I setup my DNS server. –  StaticMethod Mar 16 '13 at 18:14
show 1 more comment

1 Answer 1

Update the file "hosts" in the folder:

C:\WINDOWS\system32\drivers\etc\

to include the IP address and hostname of your Domain Controller, per: How to edit the hosts in Windows 7?

share|improve this answer
add comment

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