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 am currently setting up remote office PCs running Windows 7 Professional to authenticate back to a domain controller running Windows 2008 R2 in the headquarters. Is it possible to simply define the domain name of the domain controller using the local PC's hosts file instead of having to query a DNS server?

share|improve this question

Unfortunately, no. The hosts file is only a suitable replacement for proper DNS when you need host (A) records and their associated reverse lookup (PTR) records.

Active Directory also requires a bunch of SRV records to function, which you can see in your DNS setup under the DNS zone; these records cannot be set up with just a hosts file.

This article documents the necessary non-host records (in the context of setting up a BIND server to serve them)

share|improve this answer
Shane is absolutely correct, you have to have the service records in DNS to find domain services like kerberos, ldap and DC's to authenticate to. If you have a remote office that is even badly connected to the network, you can setup a simple DNS server that simply does zone transfers from your home office and point your clients to that. – BoxerBucks Mar 13 '11 at 17:32

I know this is dead-thread revival, but here goes. According to


you can add entries in an LMHOSTS file for the domain controller. The file resides at C:\Windows\System32\Drivers\etc and is called LMHOSTS (no extension). The format for the domain controller entry is: PDCNAME #PRE #DOM:DOMAIN-NAME "DOMAIN-NAME \0x1b" #PRE

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.