Microsoft KB Archive/320760

= The DNS Client Service Does Not Revert to Using the First Server in the List in Windows XP =

Article ID: 320760

Article Last Modified on 10/12/2007

-

APPLIES TO


 * Microsoft Windows XP Professional

-



This article was previously published under Q320760



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
If you are using Windows XP, the DNS Client service may not revert to using the first server in the DNS server list.



CAUSE
This behavior occurs because the Windows XP DNS Client service (Dnscache) follows a certain algorithm when it decides the order that it uses the DNS servers configured in the TCP/IP properties. If the DNS server list is reprioritized, the Windows XP DNS Client service resets the server priority at periodic intervals. By default, the server priorities are reset every 15 minutes.



WORKAROUND
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To work around this behavior, modify the registry so that the DNS server that is configured first is tried first on each query. Follow these steps, and then quit Registry Editor:  Click Start, click Run, type regedit, and then click OK. Locate and then click the following key in the registry:

 

 On the Edit menu, point to New, and then click REG_DWORD. Type ServerPriorityTimeLimit, and then press ENTER. On the Edit menu, click Modify. Type 0, and then click OK.</li></ol>

The default value for the   registry setting is 900, and it has a range 0x0 to 0xFFFFFFFF seconds. When you set   to 0 (zero), the server priorities are reset before the DNS Client service decides which DNS server to use. You must restart Windows XP for these changes to take affect.

<div class="status_section">

STATUS
This behavior is by design.

Additional query words: dnr

Keywords: kbnetwork kbprb KB320760

-

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

© Microsoft Corporation. All rights reserved.