libresolv(4)
NAME
libresolv − resolver library
SYNOPSIS
cc [ flag ... ] file ... −lresolv −lsocket −lnsl [ library ... ]
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
DESCRIPTION
Functions in this library provide for creating, sending, and interpreting packets to the Internet domain name servers.
By convention, libresolv.so is a link to one of the shared object files for the resolver, typically the most recent one.
For additional information on shared object interfaces, see intro(4).
Interfaces
The resolver(3N) manual page, and the system include files, describe the behavior of the functions in libresolv.so.2.
The shared object libresolv.so.2 provides the public interfaces defined below.
SUNW_2.1 (generic):
| _getlong | _getshort | _res |
| __dn_skipname | __fp_query | __hostalias |
| __p_cdname | __p_class | __p_query |
| __p_rr | __p_time | __p_type |
| __putlong | dn_comp | dn_expand |
| h_errno | res_init | res_mkquery |
| res_send | res_search | res_query |
| res_querydomain | ||
Programs are expected to use the aliases defined in <resolv.h> rather than calling the "__" prefixed procedures, as indicated in the following table. Use of the routines in the first column is discouraged.
| FUNCTION REFERENCED | ALIAS TO USE |
| __dn_skipname | dn_skipname |
| __fp_query | fp_query |
| __putlong | putlong |
| __p_cdname | p_cdname |
| __p_class | p_class |
| __p_query | p_query |
| __p_rr | p_rr |
| __p_time | p_time |
| __p_type | p_type |
libresolv.so.1 is an earlier shared library file that provides the public interfaces defined below. This file is provided for the purpose of backwards compatibility. There is no plan to fix any of its defects.
The original and complete reference documentation for these routines can only be found in earlier releases.
SUNW_1.1 (generic):
| dn_comp | dn_expand | dn_skipname |
| fp_query | _getlong | _getshort |
| h_errno | hostalias | p_cdname |
| p_class | p_query | p_rr |
| p_time | p_type | putlong |
| _res | res_init | res_mkquery |
| res_query | res_querydomain | res_search |
| res_send | strcasecmp | strncasecmp |
FILES
/usr/lib/libresolv.so symbolic link to most recent shared object file
/usr/lib/libresolv.so.1 shared object file for backward compatibility
/usr/lib/libresolv.so.2 shared object file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT-Level | Unsafe |
SEE ALSO
pvs(1), resolver(3N), intro(4), attributes(5)
SunOS 5.6 — Last change: 31 Dec 1996