I have one question about gethostbyname function:

Gethostbyname should return list of IP addresses if there is more than
one IP address for a domain name. My problem is that in my application
it returns only one address.

There nothing wrong with the code… also different example codes seems
to verify this as well.

Is this some kind of a resolver configuration issue or what else could
be wrong? What’s this new ‘lookups’ field in ‘__res_state’ struct,
which is not currently supported by the resolver in my system?


Sent via
Before you buy.