Gethostbyaddr() May Return Node Name Instead of Virtual Name (265017)



The information in this article applies to:

  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Advanced Server SP2

This article was previously published under Q265017

SYMPTOMS

If your program uses the gethostbyaddr function on a cluster to retrieve the host name for a local online virtual IP address, the HOSTENT structure that is returned may contain the node name instead of the virtual server name.

CAUSE

The Domain Name System (DNS) client cache reports the virtual IP address as local; the node name is therefore returned.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

The English version of this fix should have the following file attributes or later:
   Date        Time   Version         Size    File name
   -----------------------------------------------------
   09/20/2001  15:56  5.0.2195.4379   36,112  Rnr20.dll
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.

MORE INFORMATION

This hotfix requires a working DNS Reverse Lookup configuration. Alternatively, you may use a local HOSTS file and enter the host there manually.

For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

257577 gethostbyname() Does Not Return Cluster Virtual IP Addresses Consistently


Modification Type:MinorLast Reviewed:9/26/2005
Keywords:kbHotfixServer kbQFE kbbug kbfix kbnetwork kbWin2000PreSP3Fix kbWin2000sp3fix KB265017