Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

gethostbyname2(3) OSS Library Calls Reference Manual
ERRORS
If any of the following conditions occurs, the gethostbyname2( ) function sets h_errno to the
value that corresponds to the condition:
HOST_NOT_FOUND
The name you have used is not a valid hostname or alias. This is not a soft error;
another type of name server request might be successful.
This is the only possible value if the resolver code has been disabled.
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.
FILES
/etc/hosts The Internet network hostname database le.
Each record in the file occupies a single line and has three fields: the host
address, the hostname, and aliases.
/etc/resolv.conf
The default resolver configuration file.
RELATED INFORMATION
Files: hosts(4), resolv.conf(5).
358 Hewlett-Packard Company 527187-017