resolver.3: Mention that some functions set 'h_errno'

Reported-by: Wladimir Mutel <muwlgr@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-03-08 17:31:40 +01:00
parent 9d30b1a69a
commit fb2fb3e7f6
1 changed files with 14 additions and 0 deletions

View File

@ -461,6 +461,20 @@ and
.BR dn_expand ()
functions return the length
of the compressed name, or \-1 if an error occurs.
.PP
In the case of an error return from
.BR res_nquery (),
.BR res_query (),
.BR res_nsearch (),
.BR res_search (),
.BR res_nquerydomain (),
or
.BR res_querydomain (),
the global variable
.I h_errno
(see
.BR gethostbyname (3))
can be consulted to determine the cause of the error.
.SH FILES
.TP
.I /etc/resolv.conf