PRB: gethostbyname() Retrieves Only One IP Address from WINS (192128)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
- the operating system: Microsoft Windows NT 4.0
This article was previously published under Q192128 SYMPTOMS
When gethostbyname() attempts to resolve a host name of a multihomed
computer, it might fail to list all of the IP addresses that were
registered with Windows Internet Name Service (WINS) by the multihomed
computer.
CAUSE
The gethostbyname() only reads the first address entry in the WINS
response.
RESOLUTION
Configure Microsoft Windows TCP/IP to resolve host names using a Domain
Name Server (DNS) and register all IP addresses of the multihomed computer
in the DNS.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbnetwork kbprb kbWinsock KB192128 |
---|
|