Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (i - m) lwres_gethostbyname2(3)
TRY_AGAIN The local server did not receive a response from an authoritative server. A retry
at a later time might succeed.
NO_RECOVERY
This is a nonrecoverable error.
NO_DATA or NO_ADDRESS
The requested name is valid but no associated address was found. Another type
of name server request might succeed.
EXAMPLE
This example makes a call to lwres_gethostbyname2()
by passing the host name and address
family as arguments. If an answer is found, a pointer to the hostent structure is returned and
stored in hp. NULL is returned if no answer is found.
int af;
char *name;
struct hostent *hp;
hp = lwres_gethostbyname2(name, af);
FILES
/etc/hosts The Internet network hostname database le.
/etc/resolv.conf
The default resolver conguration le.
RELATED INFORMATION
Functions: gethostbyname2(3), lwres_hstrerror(3).
Files: hosts(4), resolv.conf(5).
527187-004 Hewlett-Packard Company 4103