We help IT Professionals succeed at work.

How to join a windows 2008 server into a local AD domain

I need help with instructions on how to join a Windows 2008 server to my local AD domain.
In my home lab I have a Windows 2008 R2 server that is configured as an AD 2008 Domain Controller.
I have a second server (Windows 2008 SP2), which I need to join into my DEVLAB AD domain.
When I attempt to do that via Control Panel -> Change Name -> Member Of: DEVLAB I get the following error:  An attempt to resolve DNS name of a DC in the domain being joined has failed. Please, verify this client is configured to reach a DNS server that can resolve DNS names in the target domain.

I also have the following Lmhosts information:

Lmhosts:     DEVLAB-SRV1     #PRE #DOM:DEVLAB    "DEVLAB         \0x1b" #PRE            
#    popular            #PRE             #source server
#    localsrv           #PRE             #needed for the include
 #INCLUDE \\localsrv\public\lmhosts
# #INCLUDE \\rhino\public\lmhosts

nbtstat -c:

Local Area Connection:
Node IpAddress: [] Scope Id: []

                  NetBIOS Remote Cache Name Table

        Name              Type       Host Address    Life [sec]
    DEVLAB         <1C>  GROUP         -1
    DEVLAB         <1B>  UNIQUE        -1
    DEVLAB-SRV1    <03>  UNIQUE        -1
    DEVLAB-SRV1    <00>  UNIQUE        -1
    DEVLAB-SRV1    <20>  UNIQUE        -1

So, I was hoping that if I can not resolve the DC in DNS (my DC is a local machne -, that I could use the Lmhosts file. For some reason that option is not being used - as you can see in the error message, it still attempting to resolve the DC in DNS.
I would be OK with iether solution - DNS or Lmhosts.

Watch Question

Top Expert 2013
The hosts file is what you would use for DNS entries.  LMHOSTS is for old NETBIOS/WINS.

Is your DC also running DNS, you need to configure the 2008 server to use the local DNS box.  You can configure the NIC to use it (instead of using the HOSTS file)




my hosts file now looks like this:       localhost
::1             localhost      devlab-srv1

but the server that I'm trying to join in is still trying to use the DNS
how do I force it to use the local hosts file as a first priority?


what worked for me at the end is to learn the proper format of the DNS SRV record, required for the AD.
Once I had that done, I was able to join the domain.




seem to work fine