PR_GetAddrInfoByName is the preferred method to get address information for an IP address (IPv4 and IPv6) and to enumerate hostname lookups. We especially need this for HP-UX to support IPv6, because the older functions are based on the deprecated getipnodebyname function, which is broken in HP-UX B.11.11 (with IPv6 patch applied). Instead of fixing PR_GetIPNodeByName for HP-UX B.11.11, we should switch to the new PR_GetAddrInfoByName function.
We should replace all gethostbyname, PR_GetHostByName, and PR_GetIPNodeByName calls with PR_GetAddrInfoByName calls. PR_GetAddrInfoByName supports both IPv4 and IPv6, so we can test the new code on IPv4 networks now. (In fact, PR_GetAddrInfoByName is supposed to make the code more oblivious of the protocol address family.) This work doesn't need to wait until we have set up an IPv6 network.
Was this already done as part of IPv6 enabling the server? If so, can someone mark this as a duplicate?
Sorry, the subject of 206724 "Replacing PR_SetNetAddr with PRLDAP_SET_PORT for IPv6 support" does not mention PR_GetAddrInfoByName, but the fix includes the replacement, as well. *** This bug has been marked as a duplicate of 206724 ***