Click here to Skip to main content
15,896,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExplain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 17:31
BaldwinMartin24-Nov-03 17:31 
GeneralRe: Explain to me Net Bios Names! Pin
Ilamparithi24-Nov-03 20:22
Ilamparithi24-Nov-03 20:22 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 20:29
BaldwinMartin24-Nov-03 20:29 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 20:43
BaldwinMartin24-Nov-03 20:43 
GeneralRe: Explain to me Net Bios Names! Pin
Ilamparithi24-Nov-03 21:09
Ilamparithi24-Nov-03 21:09 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 21:18
BaldwinMartin24-Nov-03 21:18 
GeneralRe: Explain to me Net Bios Names! Pin
Ilamparithi24-Nov-03 22:07
Ilamparithi24-Nov-03 22:07 
GeneralRe: Explain to me Net Bios Names! Pin
speedpacer25-Nov-03 13:20
speedpacer25-Nov-03 13:20 
I'm not sure exactly what you're trying to accomplish but I'm familiar with NetBios names. It sounds like you're overcomplicating it! But isn't that usually the case? Wink | ;)

A Netbios name is basically just the short name of a computer, whereas the DNS name includes the short name plus the domain suffix's. For example, if your computer name is BOB and you're in the Microsoft domain, then your Netbios name is "BOB" and your fully qualified DNS hostname would be bob.microsoft.com.

If you go to a command prompt and enter "hostname", it will return your NetBios name. You can use "nbtstat -c" to view a list of Netbios names that are in your local cache. Throw a "/?" switch to see how to refresh, clear, and reload your Netbios cache. When a computer starts up, it will typically attempt to fill your cache with netbios names that is needed to map drives, log into domains, run login scripts, locate exchange servers on the LAN etc., first through your local cache (LMHOST), then WINS (which is nothing more than a Netbios to IP name resolver), router tables if they're set up for it, and then by broadcasting. This is how networks are usually set up by default and where the node types come into play. You can modify the node type (broadcast, hybrid, etc.) to tell your computer in which order you'd like to resolve Netbios names and/or whether or not you want to use those various methods of resolution.

As long as DNS is set up properly, there should be no need to modify the LMHOST file on a workstation. The only time you should need to modify this file is in cases between two domain controllers where you've established a trust relationship, or for "tricking" a workstation into locating specific domain controllers for authentication to an NT domain (or Active Directory" by hardcoding it into the local cache for purposes of load balancing. Or if WINS is hosed, or your router tables are refreshing too quickly, etc., but again, on a well-planned network, you shouldn't need to make adjustments to the LMHOST file and doing so can result in an maintenance nightmare for network administrators. They'll sometimes use this file to get someone connected to a network resource as a quick-fix, rather than correcting the source of the problem, which will usually lead to even more problems later.

Hope that helps. If I can answer anything more specific, let me know.

Cheers,
Don
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin25-Nov-03 15:10
BaldwinMartin25-Nov-03 15:10 
GeneralRe: Explain to me Net Bios Names! Pin
speedpacer25-Nov-03 16:21
speedpacer25-Nov-03 16:21 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin25-Nov-03 16:27
BaldwinMartin25-Nov-03 16:27 
QuestionHow can I get the window handle from process id? Pin
Anonymous24-Nov-03 17:28
Anonymous24-Nov-03 17:28 
AnswerRe: How can I get the window handle from process id? Pin
John R. Shaw24-Nov-03 18:26
John R. Shaw24-Nov-03 18:26 
GeneralRe: How can I get the window handle from process id? Pin
Anonymous24-Nov-03 21:51
Anonymous24-Nov-03 21:51 
GeneralOriginal Window Procedure Pin
alex.barylski24-Nov-03 17:24
alex.barylski24-Nov-03 17:24 
GeneralRe: Original Window Procedure Pin
John R. Shaw24-Nov-03 18:05
John R. Shaw24-Nov-03 18:05 
GeneralRe: Original Window Procedure Pin
alex.barylski24-Nov-03 18:10
alex.barylski24-Nov-03 18:10 
GeneralRe: Original Window Procedure Pin
John R. Shaw24-Nov-03 18:42
John R. Shaw24-Nov-03 18:42 
GeneralRe: Original Window Procedure Pin
cmk24-Nov-03 21:57
cmk24-Nov-03 21:57 
GeneralActiveX Pin
vijisu24-Nov-03 16:26
vijisu24-Nov-03 16:26 
GeneralRe: ActiveX Pin
John R. Shaw24-Nov-03 18:36
John R. Shaw24-Nov-03 18:36 
GeneralHelp getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 15:14
Anonymous24-Nov-03 15:14 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 15:26
protectorChristian Graus24-Nov-03 15:26 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 15:31
Anonymous24-Nov-03 15:31 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 15:33
protectorChristian Graus24-Nov-03 15:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.