Link to home
Start Free TrialLog in
Avatar of bombhead
bombhead

asked on

Lmhosts and BDC's

In my lmhosts file I want to add the address's of my BDC's and also the address of another PDC in a different domain.
At present the lmhost file is configured just my PDC (the usual way #Pre    #DOM  .......etc etc). I just want to add my BDC's into this file.
Avatar of nielsp
nielsp

What exactly is your question? You can put your BDC's in the lmhosts file by adding a line for each BDC like

xxx.xxx.xxx.xxx  BDC01  #PRE
xxx.xxx.xxx.xxx  BDC02  #PRE

and even another PDC

xxx.xxx.xxx.xxx  PDC01 #PRE #DOM domain1
xxx.xxx.xxx.xxx  PDC02 #PRE #DOM domain2

You have to add an entry for your workstation in each domain you want to log in to.
Use the following character for character including case. The IPs used are just for syntax. Where you see <TAB> it means you need to hit the tab key to get the correct spacing.
1st line
10.0.0.1<tab>bdcname<tab>#PRE #DOM:domain name.
2nd line
10.0.0.1<TAB>"domainname<tab>\0x1c"<tab>#PRE

For this to work you need to add these entries to the LMHOSTS file on all domain controllers


To add the PDC for a domain simply change 0x1c to 0x1b. That is zero x 1 b

It is best to do this from a command prompt by typing in edit lmhosts, do a dir from the command prompt to make sure it does not have an extention.
Place it in the C:\winnt\system32\drivers\etc directory on each domain controler.

Avatar of bombhead

ASKER

Whilst this works for the server's I can't access server manager or user manager from my W2K workstation. I'm using DHCP so again I can't add my workstation's IP into the lmhosts file.
I've imported the lmhosts file into my pc but to no avail
Avatar of SysExpert
" I can't access server manager or user manager from my W2K

This problem is unrelated to the DHCP, or LMhosts files.
If you can not access another domain, you have no rights in that domain.
Are you the administrator for these other domains ?
Have you logged onto the other domains ?
This is a resource access problem and not an LMHOSTS file problem.
Please provide more details.

Go to the server and type in
NBTSTAT -R
NBTSTAT -c
If you do not see a 1b <00> <03> and <20> next to the PDC name then you have a NetBIOS name resolution problem.

Segment master browser, and Domain master browsers will not talk if these settings are not correct.

You do not need to add this LMHOSTS file to every machine but you do need to add it to all your BDCs and PDC on both sides of the domain trust pointing back to the other domain.

This answer is not a guess I deal with this issue on a daily bases as a domain support engineer.

The other option would be to setup WINS Servers and have them replicate to each other. Just remember when setting up a WINDS Server that the TCP/IP properties MUST point to the local machine for both primary and secondary or you will end up with what is called a "split database" creating even bigger issues.

If you use WINS you should end up with a 1b <00> <03> and <20> next to the PDC name for each domain.

If any machine other than the PDC is winning the domain master browser election you will continue to have problems even if all this is setup and working correctly. This can be caused if your PDC is loaded down and responding to slow or you have Samba on a Linux box.

The second line MUST be added to a LMHOSTS file. The line I am referring to is
10.0.0.1<TAB>"domainname<tab>\0x1b"<tab>#PRE

for a PDC it is 0x1b for a BDC it is 0x1c

Steve
MCSE+I
If you install WINS keep in mind that it can take up to two days for the database to populate completely.
ASKER CERTIFIED SOLUTION
Avatar of Steve Rose
Steve Rose
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial