Understanding and Implementing WINS

Windows Internet Name Server (WINS) Overview

WINS is an enhanced NetBIOS name server (NBNS) which was designed by Microsoft to resolve NetBIOS computer names to IP addresses, and at the same time eliminate the usage of broadcasts for name resolution. In this manner, WINS eliminates traffic generated by broadcasting on the network. WINS provides a WINS database that it utilizes to store and maintain NetBIOS computer names to IP addresses mappings. WINS registers NetBIOS computer names, and stores these client name registrations in the WINS database. The registrations are used when clients query for host name resolution and service information. The database is then utilized to resolve a NetBIOS name to an IP address.

WINS can resolve NetBIOS names for local hosts and remote hosts. Clients that are configured to utilize a WINS server as a NetBIOS name server (NBNS) are called WINS enabled clients or simply WINS clients. Clients that are not configured to utilize WINS for name resolution are called broadcast clients.

The main advantages of using WINS to resolve the NetBIOS names of computers into IP addresses are summarized below:

When a WINS enabled client queries the WINS database, the following events occur. This chain of events is often called the WINS name resolution process:

  1. The NetBIOS name cache is first checked for an entry that is associated with the requested name.
  2. A NAME QUERY REQUEST message is sent to the primary WINS server configured for the WINS client.
  3. WINS uses User Datagram Protocol (UDP) port 137 for communication.
  4. The WINS server performs a search in WINS database to determine if the queried name exists in the database.
  5. Based on whether the NetBIOS name is found in the database, the WINS server returns either a positive response or a negative response to the client.
  6. If the WINS server locates the NetBIOS name in the WINS database during its search, and the NetBIOS name has an active state, the associated IP address is returned to the client. Queried service lookups are also returned. This is called a positive response, and is sent in the form of a POSITIVE NAME QUERY RESPONSE message to the client.
  7. If the WINS server locates the NetBIOS name in the WINS database during its search but the NetBIOS name has a state other than the active state, a negative response is returned to the client, wherein the client is informed that the requested NetBIOS name is unavailable. The client is not forced to transmit a broadcast for NetBIOS name resolution.
  8. If the WINS server cannot locate the NetBIOS name in the WINS database during its search, a negative response is returned to the client. This takes the form of a NEGATIVE NAME QUERY RESPONSE message. The client is then forced to transmit a broadcast for NetBIOS name resolution.
  9. The WINS server sends the client a number of WAIT FOR ACKNOWLEDGEMENT RESPONSE messages if it cannot immediately respond to the request. This prevents clients from timing out while they wait for a response from the WINS server.
  10. If a client is configured to use a primary WINS server and a secondary WINS server, the client uses the secondary WINS server if the primary WINS server fails to respond to its request. The client proceeds to send NAME QUERY REQUEST messages to the secondary WINS server for name resolution.

Because WINS client registrations are not permanent, registration information can become outdated. The validity of the WINS client registrations is determined by the time to live interval of the WINS servers. WINS clients use a three step process to ensure that registration information in the WINS database remains current:

NetBIOS clients use the Enhanced h-node (hybrid) type for name resolution querying. Enhanced h-node type uses the p-node type (peer-to-peer) and b-node type (broadcasts), and DNS to resolve NetBIOS names to IP addresses. Enhanced h-node type is the default node type used for Windows 2000, Windows XP, and Windows Server 2003 NetBIOS clients who have a configured WINS server for name resolution. The order in which Enhanced h-node type clients resolve NetBIOS name are:

Considerations for Implementing WINS Servers

Since Windows 2000 was the first Windows operating system where NetBIOS naming was no longer required, you might still need to provide support for NetBIOS naming if you have legacy applications. Remember that all Windows operating system prior to Windows 2000 require NetBIOS name support.

A WINS server is typically not required for NetBIOS name resolution when your network is only a small LAN that resides on one physical network segment, and there are no more than 50 clients.

To implement WINS, you only need one WINS server for an internetwork. However, implementing two WINS servers provides fault tolerance for name resolution. The recommendations for implementing WINS servers are:

How to install the WINS service using Control Panel/Add or Remove Programs

  1. Click Start, and then click Control Panel.
  2. Click Add or Remove Programs.
  3. Click Add/Remove Windows Components to start the Windows Component Wizard.
  4. In Windows Components page, in the Components list, click Networking Services. Click the Details button.
  5. In the Networking Services dialog box, select the Windows Internet Name Service (WINS) checkbox.
  6. Click OK, and then click Next.
  7. The WINS service installation process starts.
  8. Click Finish.

How to install the WINS service using Control Panel/Network Connections window

  1. Click Start, and then click Control Panel.
  2. Click Network Connections.
  3. Right-click Network Connections and select Open from the shortcut menu.
  4. Click Advanced, and choose Optional Networking Components.
  5. Install the WINS service through the Windows Optional Networking Components Wizard.

Configuring the WINS Server

Configuring the WINS server, and managing it consists of the following key administrative tasks:

The MMC console used to configure the WINS server is the WINS console. The WINS console is automatically added to the Administrative Tools Menu when you install the WINS service. Through the WINS console, you can perform the following functions:

To open the WINS console,

  1. Click Start, Administrative Tools, and then click WINS

As mentioned previously, you should implement redundancy in your WINS design so that your WINS servers can push or pull database information between each other. This ensures that all WINS database information is similar for all your WINS servers. The mechanism which can be used to implement redundancy in your WINS design is WINS replication. If all the information in the WINS databases is the same, you can configure NetBIOS clients with the IP addresses of numerous WINS server. This ensures that WINS can still be used for name resolution if one of the WINS servers has a failure.

How to configure WINS replication

To replicate among each other, the WINS servers in your network have to be configured as replication partners. This can be done manually, or automatically:

How to manually configure WINS server replication partners

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click the WINS server, and click New Replication Partner on the shortcut menu.
  3. In the New Replication Partner dialog box, enter the IP address of the WINS server that you want replication to occur with.
  4. Click OK
  5. Perform the above process on the other WINS server.

How to automatically create WINS replication partners

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click Replication Partners, and then select Properties from the shortcut menu.
  3. Click the Advanced tab.
  4. Select the Enable A Partner Configuration checkbox.
  5. Click OK.

How to configure WINS replication methods

After the WINS replication partners are configured, you have to specify how replication will occur between your WINS servers. The two available methods are:

By default, when WINS replication partners are configured, both pull and push replication is specified. To view the existing replication method(s),

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, select Replication Partners
  3. Select the replication partner whose replication method you want to view in the Details pane.
  4. Right-click on the specific replication partner, and then select Properties from the shortcut menu.
  5. When the Properties dialog box for the specific replication partner opens, click the Advanced tab.

How to configure pull replication

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click Replication Partners, and then select Properties from the shortcut menu.
  3. Click the Pull Replication tab.
  4. In the Hours, Minutes, and Seconds boxes of the Start Time field, enter the time when you want pull replication to start automatically. The default setting of all 0s indicates that pull replication does not occur automatically.
  5. In the Hours, Minutes, and Seconds boxes of the Replication Interval field, enter the pull replication time interval. The default setting is 30 minutes.
  6. In the Number Of Retries field, enter how many attempts the WINS service should make to connect with a replication partner.
  7. Select the Start pull replication at service startup checkbox if you want pull replication to occur when the WINS service starts.
  8. Select the Use persistent connections for pull replication partners checkbox if you want a connection to a replication partner to remain open for replication.
  9. Click OK.

How to configure push replication

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click Replication Partners, and then select Properties from the shortcut menu.
  3. Click the Push Replication tab.
  4. Select the At service startup checkbox if you want the WINS server to inform its replication partners of database changes when the WINS service starts. The default setting is that this option is not selected.
  5. Select the When address changes checkbox if you want the WINS server to inform its replication partners of database changes when address changes occur. The default setting is that this option is not selected.
  6. In the Number of changes in version ID before replication field, specify how many database changes have to occur prior to replication partners being informed that push replication is waiting to take place.
  7. Select the Use persistent connections for pull replication partners checkbox if you want a connection to a replication partner to remain open for replication.
  8. Click OK.

How to manually force replication with all replication partners

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click Replication Partners, and then select Replicate Now from the shortcut menu.
  3. Click OK to the message requesting verification that manual replication should occur with all replication partners.

How to manually force replication with a specific replication partner

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, select Replication Partners, and then right-click the specific replication partner.
  3. Select Start Pull Replication from the shortcut menu if you want to start pull replication. Click Yes to the message stating that the request could cause can increase in network traffic. Click OK to start pull replication.
  4. Select Start Push Replication from the shortcut menu if you want to start push replication. When the Start Push Replication dialog box appears, select the Start with this partner only option. Click OK to start push replication.

Configuring Advanced WINS Configuration Options

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click the WINS server, and then select Properties on the shortcut menu.
  3. Click the Advanced tab.
  4. Enable the Log detailed events to Windows event log checkbox if you want the WINS service to log WINS specific events in the System log of the WINS server. Enabling this option for troubleshooting purposes is recommended.
  5. Select the Enable burst handling checkbox if you want to enable the WINS server to simultaneously handle a large number of requests. This advanced option setting is enabled by default. Choose between the following options: Low (300), Medium (500), High (1,000), or Custom and then enter your own number).
  6. You can change the path where the WINS database and log files are located in the Database Path box.
  7. In the Starting Version ID (hexadecimal) box, enter the number that will be used for the start version ID number of the WINS database. The default setting is 1.
  8. Select the Use computer names that are compatible with LAN Manager checkbox if you want non-Microsoft NetBIOS clients to register with the WINS server. This setting is by default enabled.
  9. Click OK.

Managing the WINS Database

The administrative tasks that you need to perform to mange the WINS database are:

The WINS database is named wins.mdb, and is located in the following folder by default:

How to view records in the WINS database

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click the WINS server whose WINS database records you want to view, and then select Display Records from the shortcut menu.

How to view specific records in the WINS database

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click Active Registrations and then select Display Records from the shortcut menu.
  3. When the Display Records dialogue box opens, you will be presented with the following tabs:
    • Record Mapping
    • Record Owners
    • Record Types
  4. You can specify search parameters on each tab. When the search of the WINS database is performed, it will include the data specified on each tab.
  5. You can filter the search by:
    • Matching name pattern
    • Matching IP address
    • Matching IP address based on subnet mask.
  6. You can select the Enable result caching checkbox if you want the search results cached locally on the machine running the query.

How to add WINS records to the WINS database

WINS only dynamically adds entries to the WINS database for WINS enabled client. Clients that are not configured to use WINS do not automatically have their name to IP address mappings added to the WINS database. You can manually add record entries for non WINS enabled NetBIOS clients so that your WINS clients can use WINS to query non WINS clients. When you manually add record entries to the WINS database, the entries that you add are regarded as being static entries, or static name to IP address mappings. These entries remain in the WINS database until they are manually deleted.

The different types of static NetBIOS names which can be added to the WINS database are the same as those names that WINS automatically registers:

When you add static mappings to the WINS database, they by default override any conflicting dynamically added WINS record. You can however configure this to not occur through enabling the Overwrite unique static mappings at this server (migrate on) option. When the option is enabled for a WINS server, all manually configured static mappings in the database are handled as dynamically added WINS records. The option can be configured differently (enabled/disabled) for each WINS server.

When WINS entries or records are added to the WINS database, they are structured in a way that enables you to sort the records according to field name. The field names in the WINS database are:

How to configure a static mapping in the WINS database

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, select Active Registrations, right-click it and then select New Static Mapping from the shortcut menu.
  3. The New Static Mapping dialog box opens.
  4. In the Computer Name box, enter the NetBIOS computer name of the non WINS NetBIOS client.
  5. For the NetBIOS Scope (optional) box, you can leave the box empty, or you can enter a NetBIOS scope identifier.
  6. In the Type box, select one of the following entry types: Unique, Group, Domain Name, Internet or Multihomed.
  7. In the IP address box, enter the IP address for the computer.
  8. Click Apply to add this entry to the WINS database.
  9. Add any additional static mapping records, and click Apply after adding each entry.
  10. Click OK.

How to configure the Overwrite unique static mappings at this server (migrate on) option for a WINS server

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, select Active Registrations, right-click it and then select Properties from the shortcut menu.
  3. On the General tab, enable the Overwrite unique static mappings at this server (migrate on) checkbox.
  4. Click OK.

How to remove WINS records from the WINS database

The methods that you can use to manually remove WINS records from the WINS database are:

How to start scavenging of the WINS database

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, select the specific WINS server whose database you want to initiate scavenging for.
  3. Right-click the WINS server and then select Scavenge Database from the shortcut menu.
  4. Click OK in the message dialog box that appears.

How to delete WINS records from within the WINS database

You delete WINS records from within the WINS database by selecting the record, and then pressing the Delete key on the selected record. Pressing the Delete key on a WINS record displays the Delete Record dialog box, with the following options:

How to verify WINS database consistency

When you verify the consistency of the WINS database, you are basically determining whether the database has any incorrect records. Database consistency pulls WINS records from the other WINS databases, and then compares these records to the local WINS database.

The result of the check leads to either of the following events occurring:

You can perform WINS database consistency checks:

You can perform two types of WINS database consistency checks:

How to manually verify database consistency

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click the specific WINS server that you want to perform database consistency on and then select Verify Database Consistency from the shortcut menu.
  3. Click Yes to verify that you want to schedule database consistency for the WINS server, and to continue with your request.
  4. Click OK to the second message that appears, indicating that the database consistency check has been queued on the server.
  5. You can consult the Windows event log to check when the database consistency check has completed.

How to verify version consistency

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click the WINS server and then select Verify Version ID Consistency from the shortcut menu.
  3. Click Yes to the message that is displayed, requesting verification that you want to continue with the version consistency operation.
  4. The Verify Version ID Consistency Progress window displays, showing the results of the version consistency process.

How to configure automatic database verification

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, right-click the specific WINS server and then select Properties from the shortcut menu.
  3. When the Properties dialog box of the WINS server opens, click the Database Verification tab.
  4. Select the Verify database consistency every: checkbox.
  5. In the Hours box, enter how often database verification should occur.
  6. Use the Begin Verifying At: boxes to set when database verification should start.
  7. Enter the appropriate value in the Maximum number of records verified each period box.
  8. Select whether you want the database should be verified against:
    • Owner servers
    • Randomly selected partners
  9. Click OK.

How to reconcile WINS records

Integrity of the WINS database and the validity of the WINS records in the database are achieved through reconciling your WINS database records.

There are two methods of reconciling the WINS database:

Before to attempting to reconcile the WINS database, you need to determine the following information

To reconcile WINS records,

  1. Click Start, Administrative Tools, and then click WINS to open the WINS console.
  2. In the console tree, expand the WINS server node, and then select Active Registrations.
  3. Right-click Active Registrations, and then select Verify Name Records from the shortcut menu.
  4. The Verify Name Records dialog box that opens is divided into a Name Records section, and a Servers section.
  5. In the Name Records section, select the List (case sensitive) option.
  6. Enter the name of the WINS record(s) that you want to reconcile. The hexadecimal service locator should be included as well. Click the Add button.
  7. In the Servers section, select the List option.
  8. Enter the IP address of the WINS server(s) that you want to reconcile the just specified WINS record against. Click Add.
  9. Click OK to start the verification of the WINS record(s).
  10. The Checking Names Registrations window displays the results of the name record verification process.

How to manually compact the WINS database

The WINS service automatically schedules for the WINS database to be compacted, by default. However, you can use the jetpack.exe tool to manually compact the WINS database.

  1. Open a command prompt window
  2. Enter net stop wins to stop the WINS database.
  3. Navigate to the location of the WINS database.
  4. Enter jetpack wins.mdb temp_dbname.mdb to compact the WINS database.
  5. Enter net start wins to start the WINS database.

Configuring WINS Clients

In order to use WINS to resolve NetBIOS names to IP addresses, you have to configure your clients as WINS clients. A computer running any of the following operating systems can be configured as WINS clients:

How to configure a WINS client

  1. Click Start, Control Panel, and then click Network Connections.
  2. Select Local Area Connection, and then click Properties.
  3. The Local Area Connection Properties dialog box opens.
  4. Select Internet Protocol (TCP/IP) from the list, and then click Properties.
  5. When the Internet Protocol (TCP/IP) Properties dialog box opens, click Advanced.
  6. The Advanced TCP/IP Settings dialog opens.
  7. Click the WINS tab.
  8. Click the Add button to add the IP address of the WINS server(s).
  9. In the TCP/IP WINS Server dialog box, enter the address of your WINS server and click Add.
  10. Verify that the WINS server you specified is displayed in the list on the Advanced TCP/IP Settings dialog box.
  11. After adding all the WINS servers, use the arrow buttons to define precedence for your WINS servers. The WINS servers at the top of the list are used before those close to the bottom of the list.
  12. Click OK on the Advanced TCP/IP Settings dialog box.
  13. Click OK on the Internet Protocol (TCP/IP) Properties dialog box.
  14. Click OK on the Local Area Connection Properties dialog box.

How to configure WINS and DNS integration

  1. Click Start, Administrative Tools, and then click DNS.
  2. The DNS console opens.
  3. Expand the Forward Lookup Zones container.
  4. Select the zone which you want to configure.
  5. Right-click the zone, and then select Properties on the shortcut menu.
  6. When the Properties dialog box for the zone opens, click the WINS tab.
  7. Select the Use WINS forward lookup checkbox.
  8. Enter the IP address of the WINS server, and click Add.
  9. Click the Advanced button on the WINS tab.
  10. Enter the appropriate value in the Cache time-out box. This setting’s value determines the duration for which DNS servers are able to cache WINS entries.
  11. Enter an appropriate value in the Lookup time-out box. The value of this setting determines the time duration for which a DNS server will wait for a response from the WINS forward lookup server.
  12. Click OK.

How to configure WINS and DHCP integration

The DHCP options that you can enable to configure DHCP to support WINS are:

Other important configuration settings for configuring WINS and DHCP support are:

To configure DHCP for WINS support,

  1. Click Start, Administrative Tools, and then click DHCP.
  2. The DHCP console opens.
  3. In the console tree, right-click Server Options and then select Configure Options from the shortcut menu.
  4. When the Server Options dialog box opens, select the 044 WINS/NBNS Servers option or the 046 WINS/NBT Node Type option.


Top 5 Free Networking Tools

Bookmark Understanding and Implementing WINS

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.