lmhost for pdc & domain entry

31 May
Add the following entries to the Lmhosts file:


      10.0.0.1   PDCName   #PRE #DOM:Domain-name
      10.0.0.1   'Domain-name    \0x1b'   #PRE 
                 '1234567890123456
NOTE: the slash is the 16th char
      also win95 clients might need to use  \0x1C

NOTE: Spacing of these entries is imperative. Replace 10.0.0.1 with the IP address of your primary domain controller (PDC), PDCName with the NetBIOS name of your PDC, and Domain with your Windows NT domain name. There must be a total of 20 characters within the quotations (the domain name plus the appropriate number of spaces to pad up to 15 characters plus the backslash plus the NetBIOS hex representation of the service type). 

yet another example
In the following example, each IP address is either the PDC or a BDC of MYDOMAIN. The first entry lists a Domain Controller not by its machine name, but by its domain name with a <1C> in the sixteenth position indicating a domain controller. Each subsequent line lists an additional Domain Controller by its computer name, with a #DOM entry that links it back to the 1C entry. All lines must have the #PRE entry to preload them into the NetBIOS name cache. 
123.45.101.20  'MYDOMAIN    \0x1C'  #PRE                   #Domain Name
123.45.101.21  'A-THIRD-DC'         #PRE  #DOM:MYDOMAIN    #Domain Name
123.45.220.15  'ANOTHERDC'          #PRE  #DOM:MYDOMAIN    #Domain Name 



\\<domain_name>[1Bh]
This instance of the domain name is registered by the Windows NT Server system that is running as the Domain Master Browser and is used to allow remote browsing of domains. When a WINS Server is queried for this name, a WINS Server returns the IP address of the system that registered this name. 

\\<domain_name>[1Ch]
This name is registered for use by the domain controllers within the domain and can contain up to 25 IP addresses. One IP address will be that of the Primary Domain Controller (PDC) and the other 24 will be the IP addresses of Backup Domain Controllers (BDCs). The [1Ch] domain name is used by the BDCs to locate the PDC and is used when pass- through authentication is needed to validate a logon request. 

YET another example

LMHOSTS Example
Your domain name is 'Globe', your PDC NetBIOS name is 'Mongo', and you have other various backup domain controllers. Your LMHOSTS file would look like this: 
199.199.199.1   'globe       \0x1b'  #PRE<BR/>
199.199.199.1   mongo      #PRE  #DOM:globe<BR/>
199.199.199.2   otherdc1   #PRE  #DOM:globe<BR/>
199.199.199.3   otherdc2   #PRE  #DOM:globe 
To verify that you've entered these correctly, open a command window (DOS prompt) and look at your NetBIOS cache: