Understanding NetBIOS Name Resolution

NetBIOS Name Resolution Overview

NetBIOS, broadcasts names to listening nodes on the network. NetBIOS utilizes a User Datagram Protocol (UDP) query to broadcast names. NetBIOS names identified computers on the network before the introduction of Windows 2000. The NetBIOS name is resolved to an IP address through Windows Internet Name Service (WINS), broadcasting, or the LMHOSTS file. If the LAN is a NetBIOS LAN, the NetBIOS name is then the network address. The NetBIOS name is assigned by an administrator when the operating system is installed. To enable communication, the following requirements exist:

Before discussing NetBIOS names or naming any further lets first look at the name types used in Windows operating systems:

A NetBIOS name is a unique name that identifies a NetBIOS resource on the network. NetBIOS names are 16-byte address. NetBIOS computer names have 15 characters, and NetBIOS service names have 16 characters. The initial 15 characters of the NetBIOS service name is the identical as the host name. It is the physical NetBIOS name. Zeros are used for padding. The last character of a NetBIOS service name identifies the particular NetBIOS service or resource. This character is typically referred to as the type byte.

When you assign a NetBIOS name to a computer running a Windows operating system, you can only assign a 15 character name. A NetBIOS name can also include additional characters to define a NetBIOS scope. This is the method used to structure NetBIOS computers into groups. Computers that have the identical NetBIOS scope can communicate between each other. With the Windows 2000 and Windows Server 2003 operating systems, you can use Dynamic Host Configuration Protocol (DHCP) to distribute NetBIOS scopes.

The NetBIOS namespace is flat. This is different to the hierarchical namespace of Domain Name System (DNS). Because the NetBIOS namespace is not as scaleable as DNS, it does not work well for large networks. NetBIOS naming should be used for private networks.

The different name resolution mechanisms available for resolving NetBIOS names into IP addresses are listed below:

Because Windows systems utilize name resolution mechanisms as a name resolution process, the following events would occur to resolve the NetBIOS name of a computer into an IP address:

  1. If the computer is set up to utilize a Windows Internet Naming Service (WINS) server for name resolution, the NetBIOS name cache is first checked to determine whether the NetBIOS name can be resolved.
  2. If the NetBIOS name is not in the NetBIOS name cache, the NAME QUERY REQUEST message is sent to the configured WINS server.
  3. If the WINS server cannot resolve the NetBIOS name, the broadcast name resolution mechanism is used.
  4. Computers that have no configured WINS server use the broadcast name resolution mechanism after the NetBIOS name cache is checked.
  5. If the broadcast name resolution mechanism is unsuccessful, the LMHOSTS file is used for name resolution.

Understanding the NetBIOS Node Types

When computers use different name resolution mechanisms to resolve names to IP addresses, the process is called nodes. Nodes can be defined as the combination of the different name resolution methods used by a NetBIOS computer to resolve a NetBIOS name to an IP address. This process was outlined in the preceding section of this Article. The NetBIOS node types are configured locally on each computer.

You can use either of following methods to configure the NetBIOS node types:

Based on the node type, you can configure the nodes to utilize any of the mechanisms listed below to resolve the NetBIOS name of a computer into an IP address:

All node types first check the NetBIOS name cache for name resolution. All Windows 2000, Windows XP, and Windows Server 2003 computers that are not using a WINS server for name resolution, are using Microsoft Enhanced b-node for name resolution. The NetBIOS name cache is first checked for name resolution. Following this, the broadcast method is used.

Because DNS is the primary name registration and name resolution method used in Windows Server 2003, all Windows 2000, Windows XP, and Windows Server 2003 NetBIOS clients first determine the following information for each request:

This would determine whether the FQDN naming convention is used. If it is used, the request is sent to the DNS server for name resolution. Following this, the configured node type is implemented.

The NetBIOS node types are listed below:

How to generate a LMHOSTS file

  1. Click Start, Control Panel, and then click Network Connections.
  2. Right-click the network connection you want to work with, and then click Properties from the shortcut menu.
  3. Select Internet Protocol (TCP/IP), and then click the Properties button.
  4. When the Internet Protocol (TCP/IP) Properties dialog box opens, click the Advanced button.
  5. The Advanced TCP/IP Settings dialog box contains four tabs (IP Settings, DNS, WINS, Option). Click the WINS tab.
  6. The Enable LMHOSTS lookup checkbox should be selected.
  7. Click the Import LMHOSTS button.
  8. Locate the text file, and after selecting the file, click Open
  9. Click OK to close the Advanced TCP/IP Settings dialog box.
  10. Click OK to close the Internet Protocol (TCP/IP) Properties dialog box
  11. Click OK to close the Local Area Connections dialog box.

How to distribute NetBIOS scopes in Windows 2000 and Windows Server 2003

With Windows Server 2003, and Windows 2000, you can use a DHCP server to distribute NetBIOS scopes. To do this, you have to use the Registry Editor to add a registry value:

  1. Click Start, Run, and enter regedt32.exe to open the Registry Editor.
  2. Navigate to HKLM\System\CurrentControlSet\Services\NetBT\Parameters.
  3. Select the Parameters registry subkey, and click Add Value from the Edit menu.
  4. In the Value Name field, enter ScopeID.
  5. Select REG_SZ in the Data Type box.
  6. Click OK.
  7. Proceed to restart the computer.

How to disable NetBIOS name resolution

  1. Click Start, Control Panel, and then click Network Connections.
  2. Right-click Local Area Connection, and then click Properties from the shortcut menu.
  3. Select Internet Protocol (TCP/IP), and then click the Properties button.
  4. When the Internet Protocol (TCP/IP) Properties dialog box opens, click the Advanced button.
  5. Click the WINS tab.
  6. Click the Disable NetBIOS Over TCP/IP option.
  7. Click OK to close the Advanced TCP/IP Settings dialog box.
  8. Click OK to close the Internet Protocol (TCP/IP) Properties dialog box
  9. Click OK to close the Local Area Connections dialog box.


Top 5 Free Networking Tools

Bookmark Understanding NetBIOS Name Resolution

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.