Microsoft KB Archive/889019

= A domain name is resolved to an incorrect IP address when a third-party name service provider is installed on a Windows XP Service Pack 2-based computer =

Article ID: 889019

Article Last Modified on 10/31/2007

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-





SYMPTOMS
Consider the following scenario:
 * You have a Windows XP Service Pack 2 (SP2)-based computer.
 * You install a third-party name service provider (NSP) to resolve the domain name in the network environment for a program such as Windows Internet Explorer.
 * The program calls the Getaddrinfo function to resolve the domain name to an IP address.

In this scenario, the IP address that is returned is incorrect. Therefore the program cannot access the network resource as expected.



CAUSE
When the program uses the Getaddrinfo function to obtain the IP address from the NSP, the function is expected to obtain the IP address that is resolved by the third-party NSP. However, the program may instead obtain the IP address that is resolved by Microsoft NSP. Microsoft NSP may not be configured to resolve the domain name to the correct IP address in the network environment.



RESOLUTION
To resolve this problem, you can use the WSCEnableNSProvider function and the WSCEnableNSProvider32 function to determine the NSP that Windows XP uses to perform name resolution on a computer that has multiple NSPs installed. The WSCEnableNSProvider function and WSCEnableNSProvider32 function can be used to enable and to disable NSPs that are installed on the computer.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about the Getaddrinfo function, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms738520.aspx

For more information about how to configure the name service provider, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/aa373600.aspx

For more information about how to configure and to install name resolution functionality, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms739847.aspx

For more information about the WSCEnableNSProvider function, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms742233.aspx

For more information about the WSCEnableNSProvider32 function, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms742232.aspx

Keywords: kbtshoot kbexpertiseadvanced kbprb KB889019

-

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

© Microsoft Corporation. All rights reserved.