PRB: gethostbyname() Retrieves Only One IP Address from WINS
Article ID: 192128
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
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.
Keywords: kbwinsock kbnetwork kbprb KB192128