summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2005-01-22 15:44:25 +0000
committerjmc <>2005-01-22 15:44:25 +0000
commit979de9d040d77e93d86b054d2008d12d51037866 (patch)
treea27c404d193b8950c576ccb20d180f8b9ccbb3e7
parent406f0b00349b2f0049fb5028cda512859d0b0224 (diff)
downloadopenbsd-979de9d040d77e93d86b054d2008d12d51037866.tar.gz
openbsd-979de9d040d77e93d86b054d2008d12d51037866.tar.bz2
openbsd-979de9d040d77e93d86b054d2008d12d51037866.zip
some fixes from netbsd, plus a few of my own;
ok krw@
-rw-r--r--src/lib/libc/net/resolver.356
1 files changed, 31 insertions, 25 deletions
diff --git a/src/lib/libc/net/resolver.3 b/src/lib/libc/net/resolver.3
index 577420e9f1..ac48252e83 100644
--- a/src/lib/libc/net/resolver.3
+++ b/src/lib/libc/net/resolver.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: resolver.3,v 1.17 2003/08/08 09:26:02 jmc Exp $ 1.\" $OpenBSD: resolver.3,v 1.18 2005/01/22 15:44:25 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 1985, 1991, 1993 3.\" Copyright (c) 1985, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -46,7 +46,7 @@
46.Fd #include <resolv.h> 46.Fd #include <resolv.h>
47.Ft int 47.Ft int
48.Fo res_query 48.Fo res_query
49.Fa "char *dname" 49.Fa "const char *dname"
50.Fa "int class" 50.Fa "int class"
51.Fa "int type" 51.Fa "int type"
52.Fa "u_char *answer" 52.Fa "u_char *answer"
@@ -54,7 +54,7 @@
54.Fc 54.Fc
55.Ft int 55.Ft int
56.Fo res_search 56.Fo res_search
57.Fa "char *dname" 57.Fa "const char *dname"
58.Fa "int class" 58.Fa "int class"
59.Fa "int type" 59.Fa "int type"
60.Fa "u_char *answer" 60.Fa "u_char *answer"
@@ -63,38 +63,38 @@
63.Ft int 63.Ft int
64.Fo res_mkquery 64.Fo res_mkquery
65.Fa "int op" 65.Fa "int op"
66.Fa "char *dname" 66.Fa "const char *dname"
67.Fa "int class" 67.Fa "int class"
68.Fa "int type" 68.Fa "int type"
69.Fa "char *data" 69.Fa "const u_char *data"
70.Fa "int datalen" 70.Fa "int datalen"
71.Fa "struct rrec *newrr" 71.Fa "const u_char *newrr"
72.Fa "char *buf" 72.Fa "u_char *buf"
73.Fa "int buflen" 73.Fa "int buflen"
74.Fc 74.Fc
75.Ft int 75.Ft int
76.Fo res_send 76.Fo res_send
77.Fa "char *msg" 77.Fa "const u_char *msg"
78.Fa "int msglen" 78.Fa "int msglen"
79.Fa "char *answer" 79.Fa "u_char *answer"
80.Fa "int anslen" 80.Fa "int anslen"
81.Fc 81.Fc
82.Ft int 82.Ft int
83.Fn res_init "void" 83.Fn res_init "void"
84.Ft int 84.Ft int
85.Fo dn_comp 85.Fo dn_comp
86.Fa "char *exp_dn" 86.Fa "const char *exp_dn"
87.Fa "char *comp_dn" 87.Fa "u_char *comp_dn"
88.Fa "int length" 88.Fa "int length"
89.Fa "char **dnptrs" 89.Fa "u_char **dnptrs"
90.Fa "char **lastdnptr" 90.Fa "u_char **lastdnptr"
91.Fc 91.Fc
92.Ft int 92.Ft int
93.Fo dn_expand 93.Fo dn_expand
94.Fa "u_char *msg" 94.Fa "const u_char *msg"
95.Fa "u_char *eomorig" 95.Fa "const u_char *eomorig"
96.Fa "u_char *comp_dn" 96.Fa "const u_char *comp_dn"
97.Fa "u_char *exp_dn" 97.Fa "char *exp_dn"
98.Fa "int length" 98.Fa "int length"
99.Fc 99.Fc
100.Sh DESCRIPTION 100.Sh DESCRIPTION
@@ -171,6 +171,14 @@ This causes IPv4 addresses to be returned as an IPv4 mapped address.
171For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1. 171For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1.
172The option is not meaningful on 172The option is not meaningful on
173.Ox . 173.Ox .
174.It Dv RES_USE_EDNS0
175Enables support for OPT pseudo-RR for EDNS0 extension.
176With this option, resolver code will attach OPT pseudo-RR into DNS queries,
177to inform of our receive buffer size.
178The option will allow DNS servers to take advantage of non-default receive
179buffer size, and to send larger replies.
180DNS query packets with EDNS0 extension is not compatible with
181non-EDNS0 DNS servers.
174.El 182.El
175.Pp 183.Pp
176The 184The
@@ -303,7 +311,7 @@ The
303.Fn dn_expand 311.Fn dn_expand
304entry expands the compressed domain name 312entry expands the compressed domain name
305.Fa comp_dn 313.Fa comp_dn
306to a full domain name 314to a full domain name.
307The compressed name is contained in a query or reply message; 315The compressed name is contained in a query or reply message;
308.Fa msg 316.Fa msg
309is a pointer to the beginning of the message. 317is a pointer to the beginning of the message.
@@ -313,11 +321,9 @@ which is of size
313.Fa length . 321.Fa length .
314The size of compressed name is returned or \-1 if there was an error. 322The size of compressed name is returned or \-1 if there was an error.
315.Sh FILES 323.Sh FILES
316.Bl -tag -width Pa 324.Bl -tag -width "/etc/resolv.confXX"
317/etc/resolv.conf 325.It Pa /etc/resolv.conf
318configuration file 326The configuration file.
319see
320.Xr resolv.conf 5 .
321.El 327.El
322.Sh SEE ALSO 328.Sh SEE ALSO
323.Xr gethostbyname 3 , 329.Xr gethostbyname 3 ,
@@ -325,12 +331,12 @@ see
325.Xr hostname 7 , 331.Xr hostname 7 ,
326.Xr named 8 332.Xr named 8
327.Pp 333.Pp
334.%T RFC 974 ,
328.%T RFC 1032 , 335.%T RFC 1032 ,
329.%T RFC 1033 , 336.%T RFC 1033 ,
330.%T RFC 1034 , 337.%T RFC 1034 ,
331.%T RFC 1035 , 338.%T RFC 1035 ,
332.%T RFC 1535 , 339.%T RFC 1535
333.%T RFC 974
334.Rs 340.Rs
335.%T "Name Server Operations Guide for BIND" 341.%T "Name Server Operations Guide for BIND"
336.Re 342.Re