Page 1 of 1 1
Topic Options
#65805 - 2002-05-29 05:49 PM hosts / lmhosts offtopic
Rogier Pelzer Offline
Fresh Scripter

Registered: 2000-02-04
Posts: 41
Loc: The Netherlands
Hi,

i've a problem with w2k machines. If i copy the lmhosts or the hosts file to \winnt\system32\drivers\etc and want to resolve a name from the files it doesn't work.
If i run ipconfig /renew the names can be resolved..... Any idee...... i'm [Confused]

Thanks,

rogier

Top
#65806 - 2002-05-29 05:56 PM Re: hosts / lmhosts offtopic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Are you using #PRE in the file? The LMHOSTS file is supposed to be the last place checked to resolve names. It is however read at startup to get all those items that are suppose to be PREloaded into the cache.

Try using 'NBTSTAT -R' (The "R" is case sensative.) to flush/reload the name cache.

LMHOSTS is the netbios name file and the HOSTS file is for DNS names.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#65807 - 2002-05-30 07:12 AM Re: hosts / lmhosts offtopic
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Rogier,

Did you have a look at - http://kixtart.org/board/ultimatebb.php?ubb=get_topic;f=2;t=000486

??

This maybe more helpful with this application.

- Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#65808 - 2002-05-30 10:42 AM Re: hosts / lmhosts offtopic
Rogier Pelzer Offline
Fresh Scripter

Registered: 2000-02-04
Posts: 41
Loc: The Netherlands
Thanks,

but this is not the problem. The problem i have on only w2k machines is that if i copy a hosts file to the ..../drivers/etc dir, the file is not "active". This is only on w2k machines. I almost looks like the file is loaded before i do a copy action, so that the new hosts file is not activated...

Thanks,
Rogier

Top
#65809 - 2002-05-30 02:14 PM Re: hosts / lmhosts offtopic
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Rogier,

I think Howard's response is more appropriate then.

Regards,

- Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#65810 - 2002-05-30 02:29 PM Re: hosts / lmhosts offtopic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
FYI:
Primary Domain Controller (PDC) Names Entered in LMHOSTS File Are Case-Sensitive (Q262655)

--------------------------------------------------------------------------------
The information in this article applies to:

Microsoft Windows 2000 Professional
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Server
Microsoft Windows NT Server version 4.0
Microsoft Windows NT Workstation version 4.0

--------------------------------------------------------------------------------

SYMPTOMS
A preloaded entry for the primary domain controllers (PDCs) (Domainname<1B>) in the NetBT (NetBIOS over TCP/IP) cache is not recognized. Even though Domainname<1B> seems to be loaded in the NetBT cache, the computer still queries for that name.

CAUSE
PDC entries in the LMHOSTS file are case-sensitive. If lowercase characters are used for the domain names, the names are not recognized by NetBT.

RESOLUTION
Use all uppercase characters for the domain name in LMHOSTS file.

MORE INFORMATION
An entry in the LMHOSTS file should look like the following:

192.200.1.1 "DOMAINNAME \0x1b" #PRE
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#65811 - 2002-05-30 02:45 PM Re: hosts / lmhosts offtopic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You do have the LMHOSTS enabled, right?

Make sure the Lmhosts lookup is enabled by performing the following steps:

Click Start, point to Settings, and click Control Panel.

Double-click Networks, on the Protocols tab, and double-click TCP/IP Protocol.

On the WINS Address tab and click the Enable LMHOSTS Lookup to enable it.

NOTE: You need to restart your computer for this change to take effect.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.054 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org