1 '\" te 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 "Aug 19, 2019" 7 .SH NAME 8 libresolv \- resolver library 9 .SH SYNOPSIS 10 .nf 11 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lresolv\fR \fB-lsocket\fR \fB-lnsl\fR [ \fIlibrary\fR... ] 12 #include <\fBsys/types.h\fR> 13 #include <\fBnetinet/in.h\fR> 14 #include <\fBarpa/nameser.h\fR> 15 #include <\fBresolv.h\fR> 16 #include <\fBnetdb.h\fR> 17 .fi 18 19 .SH DESCRIPTION 20 Functions in this library provide for creating, sending, and interpreting 21 packets to the Internet domain name servers. 22 .SH INTERFACES 23 The shared object \fBlibresolv.so.2\fR provides the public interfaces defined 24 below. See \fBIntro\fR(3) for additional information on shared object 25 interfaces. 26 .sp 27 28 .sp 29 .TS 30 l l 31 l l . 32 \fB__dn_skipname\fR \fB__fp_query\fR 33 \fB__hostalias\fR \fB__p_cdname\fR 34 \fB__p_class\fR \fB__p_query\fR 35 \fB__p_time\fR \fB__p_type\fR 36 \fB__putlong\fR \fB_getlong\fR 37 \fB_getshort\fR \fB_res\fR 38 \fBdn_comp\fR \fBdn_expand\fR 39 \fBfp_resstat\fR \fBh_errno\fR 40 \fBherror\fR \fBhstrerror\fR 41 \fBres_hostalias\fR \fBres_init\fR 42 \fBres_mkquery\fR \fBres_nclose\fR 43 \fBres_ninit\fR \fBres_nmkquery\fR 44 \fBres_nquery\fR \fBres_nquerydomain\fR 45 \fBres_nsearch\fR \fBres_nsend\fR 46 \fBres_nsendsigned\fR \fBres_query\fR 47 \fBres_querydomain\fR \fBres_search\fR 48 \fBres_send\fR \fBres_update\fR 49 .TE 50 51 .sp 52 .LP 53 Programs are expected to use the aliases defined in <\fBresolv.h\fR> rather 54 than calling the "__" prefixed procedures, as indicated in the following table. 55 Use of the routines in the first column is discouraged. 56 .sp 57 58 .sp 59 .TS 60 c c 61 l l . 62 \fBFUNCTION REFERENCED\fR \fBALIAS TO USE\fR 63 \fB__dn_skipname\fR \fBdn_skipname\fR 64 \fB__fp_query\fR \fBfp_query\fR 65 \fB__putlong\fR \fBputlong\fR 66 \fB__p_cdname\fR \fBp_cdname\fR 67 \fB__p_class\fR \fBp_class\fR 68 \fB__p_time\fR \fBp_time\fR 69 \fB__p_type\fR \fBp_type\fR 70 .TE 71 72 .SH FILES 73 .ne 2 74 .na 75 \fB/lib/libresolv.so.1\fR 76 .ad 77 .RS 26n 78 shared object for backward compatibility only 79 .RE 80 81 .sp 82 .ne 2 83 .na 84 \fB/lib/64/libresolv.so.1\fR 85 .ad 86 .RS 26n 87 64-bit shared object for backward compatibility only 88 .RE 89 90 .sp 91 .ne 2 92 .na 93 \fB/lib/libresolv.so.2\fR 94 .ad 95 .RS 26n 96 shared object 97 .RE 98 99 .sp 100 .ne 2 101 .na 102 \fB/lib/64/libresolv.so.2\fR 103 .ad 104 .RS 26n 105 64-bit shared object 106 .RE 107 108 .SH ATTRIBUTES 109 See \fBattributes\fR(5) for descriptions of the following attributes: 110 .sp 111 112 .sp 113 .TS 114 box; 115 c | c 116 l | l . 117 ATTRIBUTE TYPE ATTRIBUTE VALUE 118 _ 119 Interface Stability Standard: BIND 8.2.4 120 _ 121 MT-Level See \fBresolver\fR(3RESOLV) 122 .TE 123 124 .SH SEE ALSO 125 \fBpvs\fR(1), \fBIntro\fR(3), \fBresolver\fR(3RESOLV), \fBattributes\fR(5)