Microsoft KB Archive/139270

= How to change name resolution order on Windows 95 and Windows NT =

Article ID: 139270

Article Last Modified on 2/10/2005

-

APPLIES TO


 * Microsoft Windows NT Workstation 3.5
 * Microsoft Windows NT Workstation 3.51
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 3.5
 * Microsoft Windows NT Server 3.51
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows 95

-



This article was previously published under Q139270



INTRODUCTION
The following registry entries control name resolution order for Windows NT version 3.5x and Windows 95:

DnsPriority

LocalPriority

HostsPriority

NetbtPriority

Each value is a BINARY value between -32768 and 32767, specified in hexadecimal notation. The lower the value, the higher the priority in the search order.

You can use existing values by rearranging them in a needed order. (Use scientific calculator, for example, to compare hexadecimal numbers). Deleting an entry disables the corresponding resolution method.

For additional information, please see the following article(s) in the Microsoft Knowledge Base:

170619 Windows 95 ServiceProvider Priority Values Not Applied

The following registry entry controls name resolution order for Windows NT version 4.0:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DnsNbtLookupOrder

Value Type: REG_DWORD

Valid Range: 0 or 1

Default: 0 (False)

Description: This parameter specifies that NBT name resolution should be attempted before DNS name resolution.

A value of 0 (default) indicates that Domain Name System (DNS) protocol name resolution has priority over NetBIOS over TCPIP (NetBT). A value of 1 indicates that NetBT name resolution has priority over DNS.

Note By default, Windows 2000 and Windows Server 2003 try to resolve a name through DNS before they try to resolve it through the earlier-version node-type configuration. DNS or NetBIOS lookup order priority can be modified by applying this registry entry.

For additional information, please see the following article(s) in the Microsoft Knowledge Base:

171567 NT 4.0 ServiceProvider Priority Values Not Applied



MORE INFORMATION
The above entries are found in the following registry locations:

Windows NT
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TCPIP\ServiceProvider

Windows 95
In order to set priorities in Windows 95, you must create new keys and values with the following steps:

 Use regedit to open the following location:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services

 Click on Edit, New, then Key to create a new key under Services and name it MSTCP. Move to the new MSTCP key, and click on Edit, New, then Key to create a new key under MSTCP and name it ServiceProvider.

The registry path should now look like this:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSTCP\ServiceProvider

 Move to the new ServiceProvider key, and click on Edit, New, then Binary Value to add the priority values noted above (DnsPriority, LocalPriority, HostsPriority, and NetbtPriority). Set the priority values as needed.

Keywords: KB139270

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.