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