2 .\" Copyright (C) 2004, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LIBRESOLV 3LIB "Mar 24, 2004"
8 libresolv \- resolver library
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lresolv\fR \fB -lsocket \fR \fB -lnsl \fR [ \fIlibrary\fR... ]
13 #include <\fBsys/types.h\fR>
14 #include <\fBnetinet/in.h\fR>
15 #include <\fBarpa/nameser.h\fR>
16 #include <\fBresolv.h\fR>
17 #include <\fBnetdb.h\fR>
23 Functions in this library provide for creating, sending, and interpreting
24 packets to the Internet domain name servers.
28 The shared object \fBlibresolv.so.2\fR provides the public interfaces defined
29 below. See \fBIntro\fR(3) for additional information on shared object
37 \fB__dn_skipname\fR \fB__fp_query\fR
38 \fB__hostalias\fR \fB__p_cdname\fR
39 \fB__p_class\fR \fB__p_query\fR
40 \fB__p_time\fR \fB__p_type\fR
41 \fB__putlong\fR \fB_getlong\fR
42 \fB_getshort\fR \fB_res\fR
43 \fBdn_comp\fR \fBdn_expand\fR
44 \fBfp_resstat\fR \fBh_errno\fR
45 \fBherror\fR \fBhstrerror\fR
46 \fBres_hostalias\fR \fBres_init\fR
47 \fBres_mkquery\fR \fBres_nclose\fR
48 \fBres_ninit\fR \fBres_nmkquery\fR
49 \fBres_nquery\fR \fBres_nquerydomain\fR
50 \fBres_nsearch\fR \fBres_nsend\fR
51 \fBres_nsendsigned\fR \fBres_query\fR
52 \fBres_querydomain\fR \fBres_search\fR
53 \fBres_send\fR \fBres_update\fR
58 Programs are expected to use the aliases defined in <\fBresolv.h\fR> rather
59 than calling the "__" prefixed procedures, as indicated in the following table.
60 Use of the routines in the first column is discouraged.
67 \fBFUNCTION REFERENCED\fR \fBALIAS TO USE\fR
68 \fB__dn_skipname\fR \fBdn_skipname\fR
69 \fB__fp_query\fR \fBfp_query\fR
70 \fB__putlong\fR \fBputlong\fR
71 \fB__p_cdname\fR \fBp_cdname\fR
72 \fB__p_class\fR \fBp_class\fR
73 \fB__p_time\fR \fBp_time\fR
74 \fB__p_type\fR \fBp_type\fR
81 \fB\fB/lib/libresolv.so.1\fR\fR
84 shared object for backward compatibility only
90 \fB\fB/lib/64/libresolv.so.1\fR\fR
93 64-bit shared object for backward compatibility only
99 \fB\fB/lib/libresolv.so.2\fR\fR
108 \fB\fB/lib/64/libresolv.so.2\fR\fR
117 See \fBattributes\fR(5) for descriptions of the following attributes:
125 ATTRIBUTE TYPE ATTRIBUTE VALUE
127 Interface Stability Standard: BIND 8.2.4
129 MT-Level See \fBresolver\fR(3RESOLV)
135 \fBpvs\fR(1), \fBIntro\fR(3), \fBresolver\fR(3RESOLV), \fBattributes\fR(5)