Computers & ProgrammingBasic NetworkingComputers & Networking

TCP/IP NetBIOS and Host Name Resolution

This summary discusses the various methods of name resolution used by Microsoft Windows clients. On a network using TCP/IP, it is necessary to resolve NetBIOS and host names to IP addresses in order to connect to network resources.

Microsoft Windows clients will follow a certain sequence to resolve a name to an address and completing process when it successfully resolves that name to an IP address.

There are two main types of name resolution used in almost every situation: NetBIOS resolution and host name resolution. Clients (mainly legacy) connecting to resources on Microsoft servers, typically through Windows File Manager or Network Neighborhood, use NetBIOS name resolution.

Host name resolution resolves the names of TCP/IP resources that do not connect through the NetBIOS interface. There are many examples of applications that rely on host name resolution such as web browsers, Ping, FTP, and Telnet.

Legacy clients (pre-Windows 2000) will use the NetBIOS name resolution process before attempting to use host name resolution processes. Windows 2000 and later clients will mainly perform host name resolution prior to attempting NetBIOS name resolution.

Host name resolution uses the following steps:

  1. Verifies against its own host name (HOSTNAME)
  2. Looks at the client’s local DNS cache (IPCONFIG /displayDNS)
  3. Searches the HOSTS file (%systemroot%\system32\drivers\etc\)
  4. Query a DNS Server (as per client TCP/IP configuration)
  5. Query WINS Server (for H-Node clients: as per client TCP/IP configuration)
  6. Sends out a Broadcast on the local subnet
  7. Searches the LMHOSTS file (%systemroot%\system32\drivers\etc\)

NetBIOS name resolution uses the following steps:

  1. Verifies if it is the local machine by its registered name NetBIOS name.
  2. Looks at its NetBIOS name cache (NBTSTAT -n)
  3. Query WINS Server (for H-Node clients: as per client TCP/IP configuration)
  4. Sends out a Broadcast on the local subnet
  5. Searches the LMHOSTS file (%systemroot%\system32\drivers\etc\)
  6. Searches the HOSTS file (%systemroot%\system32\drivers\etc\)
  7. Query a DNS Server (as per client TCP/IP configuration)

When resolving NetBIOS and host name the client will skip the steps listed above for which it is not configured. For example, if there is no DNS or WINS server configured in the TCP/IP settings, those steps will be skipped and the client will continue down the list of options.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top