getaddrinfo.3n (2010 09)

g
getaddrinfo(3N) getaddrinfo(3N)
is used for name/address resolution, the method used by the functions
getnameinfo()
and getad-
drinfo() to search an address is listed below:
getnameinfo() Sequentially searches the /etc/hosts file until an address matching the src
parameter is found or until the end of file is encountered.
getaddrinfo() Sequentially searches the /etc/hosts file until a host name (official name
or an alias name) matching the name parameter is found or until the end of
file is encountered. The host names are matched irrespective of upper or lower
case alphabets.
WARNINGS
Obsolescent Interfaces
The following interfaces are included to support existing applications and may be removed in future
releases.
struct hostent *getipnodebyname(const char *name,
int af,
int flags,
int *error_num);
int getipnodebyaddr(const void *src,
size_t len,
int af,
int *error_num);
New applications must use the APIs getaddrinfo()
and getnameinfo() for name/address resolu-
tion.
Obsolescent Directive
The
ipnodes directive, which is used by the getaddrinfo()
and getnameinfo() APIs, may not be
supported in future HP-UX releases. In order to minimize the impact to applications, HP recommends
that you have the same configuration for the
hosts and the ipnodes directives.
AUTHOR
getaddrinfo() was developed by HP.
FILES
/etc/hosts
/etc/services
SEE ALSO
ndd(1M), gethostent(3N), resolver(3N), nsswitch.conf(4).
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5