Content-type: text/html Man page of libresolv

libresolv

Section: Interface Libraries (3LIB)
Updated: 24 Mar 2004
Index Return to Main Contents
 

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>
#include <netdb.h>
 

DESCRIPTION

Functions in this library provide for creating, sending, and interpreting packets to the Internet domain name servers.  

INTERFACES

The shared object libresolv.so.2 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.

__dn_skipname__fp_query
__hostalias__p_cdname
__p_class__p_query
__p_time__p_type
__putlong_getlong
_getshort_res
dn_compdn_expand
fp_resstath_errno
herrorhstrerror
res_hostaliasres_init
res_mkqueryres_nclose
res_ninitres_nmkquery
res_nqueryres_nquerydomain
res_nsearchres_nsend
res_nsendsignedres_query
res_querydomainres_search
res_sendres_update

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_skipnamedn_skipname
__fp_queryfp_query
__putlongputlong
__p_cdnamep_cdname
__p_classp_class
__p_timep_time
__p_typep_type

 

FILES

/lib/libresolv.so.1 shared object for backward compatibility only

/lib/64/libresolv.so.1 64-bit shared object for backward compatibility only

/lib/libresolv.so.2 shared object

/lib/64/libresolv.so.2 64-bit shared object

 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWcsl (32-bit)
SUNWcslx (64-bit)
Interface StabilityStandard: BIND 8.2.4
MT-LevelSee resolver(3RESOLV)

 

SEE ALSO

pvs(1), intro(3), resolver(3RESOLV), attributes(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
INTERFACES
FILES
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:38:41 GMT, October 02, 2010