1 LIBRESOLV(3LIB)               Interface Libraries              LIBRESOLV(3LIB)
   2 
   3 
   4 
   5 NAME
   6        libresolv - resolver library
   7 
   8 SYNOPSIS
   9        cc [ flag... ] file... -lresolv -lsocket -lnsl [ library... ]
  10        #include <sys/types.h>
  11        #include <netinet/in.h>
  12        #include <arpa/nameser.h>
  13        #include <resolv.h>
  14        #include <netdb.h>
  15 
  16 
  17 DESCRIPTION
  18        Functions in this library provide for creating, sending, and
  19        interpreting packets to the Internet domain name servers.
  20 
  21 INTERFACES
  22        The shared object libresolv.so.2 provides the public interfaces defined
  23        below. See Intro(3) for additional information on shared object
  24        interfaces.
  25 
  26 
  27 
  28 
  29        __dn_skipname     __fp_query
  30        __hostalias       __p_cdname
  31        __p_class         __p_query
  32        __p_time          __p_type
  33        __putlong         _getlong
  34        _getshort         _res
  35        dn_comp           dn_expand
  36        fp_resstat        h_errno
  37        herror            hstrerror
  38        res_hostalias     res_init
  39        res_mkquery       res_nclose
  40        res_ninit         res_nmkquery
  41        res_nquery        res_nquerydomain
  42        res_nsearch       res_nsend
  43        res_nsendsigned   res_query
  44        res_querydomain   res_search
  45        res_send          res_update
  46 
  47 
  48 
  49        Programs are expected to use the aliases defined in  <resolv.h> rather
  50        than calling the "__" prefixed procedures, as indicated in the
  51        following table.  Use of the routines in the first column is
  52        discouraged.
  53 
  54 
  55 
  56 
  57        FUNCTION REFERENCED    ALIAS TO USE
  58        __dn_skipname          dn_skipname
  59        __fp_query             fp_query
  60        __putlong              putlong
  61        __p_cdname             p_cdname
  62        __p_class              p_class
  63        __p_time               p_time
  64        __p_type               p_type
  65 
  66 
  67 FILES
  68        /lib/libresolv.so.1
  69                                  shared object for backward compatibility only
  70 
  71 
  72        /lib/64/libresolv.so.1
  73                                  64-bit shared object for backward
  74                                  compatibility only
  75 
  76 
  77        /lib/libresolv.so.2
  78                                  shared object
  79 
  80 
  81        /lib/64/libresolv.so.2
  82                                  64-bit shared object
  83 
  84 
  85 ATTRIBUTES
  86        See attributes(5) for descriptions of the following attributes:
  87 
  88 
  89 
  90 
  91        +--------------------+-----------------------+
  92        |  ATTRIBUTE TYPE    |    ATTRIBUTE VALUE    |
  93        +--------------------+-----------------------+
  94        |Interface Stability | Standard:  BIND 8.2.4 |
  95        +--------------------+-----------------------+
  96        |MT-Level            | See resolver(3RESOLV) |
  97        +--------------------+-----------------------+
  98 
  99 SEE ALSO
 100        pvs(1), Intro(3), resolver(3RESOLV), attributes(5)
 101 
 102 
 103 
 104                                 August 19, 2019                LIBRESOLV(3LIB)