This commit is contained in:
Michael Kerrisk 2007-12-16 14:00:15 +00:00
parent 231846a6b0
commit 653ba10abd
1 changed files with 17 additions and 6 deletions

View File

@ -92,7 +92,8 @@ resolv.conf(5)) to get the default domain name, search order and name
server address(es).
If no server is given, the local host is tried.
If no domain is given, that associated with the local host is used.
It can be overridden with the environment variable LOCALDOMAIN.
It can be overridden with the environment variable
.BR LOCALDOMAIN .
.BR res_init ()
is normally executed by the first call to one of the
other functions.
@ -111,7 +112,11 @@ function makes a query and waits for the response
like
.BR res_query (),
but in addition implements the default and search
rules controlled by RES_DEFNAMES and RES_DNSRCH (see description of
rules controlled by
.B RES_DEFNAMES
and
.B RES_DNSRCH
(see description of
\fI_res\fP options below).
.PP
The
@ -128,7 +133,9 @@ The
function constructs a query message in \fIbuf\fP
of length \fIbuflen\fP for the domain name \fIdname\fP.
The query type
\fIop\fP is usually QUERY, but can be any of the types defined in
\fIop\fP is usually
.BR QUERY ,
but can be any of the types defined in
\fI<arpa/nameser.h>\fP.
\fInewrr\fP is currently unused.
.PP
@ -155,7 +162,9 @@ If \fIdnptr\fP is NULL, domain names are not compressed.
If \fIlastdnptr\fP is NULL, the list
of labels is not updated.
.PP
The \fPdn_expand\fP() function expands the compressed domain name
The
.BR dn_expand ()
function expands the compressed domain name
\fIcomp_dn\fP to a full domain name, which is placed in the buffer
\fIexp_dn\fP of size \fIlength\fP.
The compressed name is contained
@ -167,7 +176,7 @@ contained in the structure \fI_res\fP, which is defined in
\fI<resolv.h>\fP.
The only field that is normally manipulated by the
user is \fI_res.options\fP.
This field can contain the bitwise ``or''
This field can contain the bitwise "OR"
of the following options:
.TP
.B RES_INIT
@ -211,7 +220,9 @@ single component names, i.e., those that do not contain a dot.
[Enabled by default].
.TP
.B RES_STAYOPEN
Used with RES_USEVC to keep the TCP connection open between queries.
Used with
.B RES_USEVC
to keep the TCP connection open between queries.
.TP
.B RES_DNSRCH
If set,