1libresolv(3LIB) Interface Libraries libresolv(3LIB)
2
3
4
6 libresolv - resolver library
7
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
18 Functions in this library provide for creating, sending, and interpret‐
19 ing packets to the Internet domain name servers.
20
22 The shared object libresolv.so.2 provides the public interfaces defined
23 below. See Intro(3) for additional information on shared object inter‐
24 faces.
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 follow‐
51 ing table. Use of the routines in the first column is discouraged.
52
53
54
55
56 FUNCTION REFERENCED ALIAS TO USE
57 __dn_skipname dn_skipname
58 __fp_query fp_query
59 __putlong putlong
60 __p_cdname p_cdname
61 __p_class p_class
62 __p_time p_time
63 __p_type p_type
64
65
67 /lib/libresolv.so.1 shared object for backward compatibility only
68
69
70 /lib/64/libresolv.so.1 64-bit shared object for backward compatibil‐
71 ity only
72
73
74 /lib/libresolv.so.2 shared object
75
76
77 /lib/64/libresolv.so.2 64-bit shared object
78
79
81 See attributes(5) for descriptions of the following attributes:
82
83
84
85
86 ┌─────────────────────────────┬─────────────────────────────┐
87 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
88 ├─────────────────────────────┼─────────────────────────────┤
89 │Availability │SUNWcsl (32-bit) │
90 ├─────────────────────────────┼─────────────────────────────┤
91 │ │SUNWcslx (64-bit) │
92 ├─────────────────────────────┼─────────────────────────────┤
93 │Interface Stability │Standard: BIND 8.2.4 │
94 ├─────────────────────────────┼─────────────────────────────┤
95 │MT-Level │See resolver(3RESOLV) │
96 └─────────────────────────────┴─────────────────────────────┘
97
99 pvs(1), Intro(3), resolver(3RESOLV), attributes(5)
100
101
102
103SunOS 5.11 24 Mar 2004 libresolv(3LIB)