Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Interface Librarieslibresolv(3LIB)


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

 
/usr/lib/libresolv.so.1
shared object for backward compatibility only
/usr/lib/64/libresolv.so.1
64-bit shared object for backward compatibility only
/usr/lib/libresolv.so.2
shared object
/usr/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)
MT-LevelSee resolver3RESOLV
Interface Stability BIND 8.2.4

SEE ALSO

 

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


SunOS 5.9Go To TopLast Changed 10 Sep 2001

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.