98N/A - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2014-2016 Internet Systems Consortium, Inc. ("ISC") 98N/A - This Source Code Form is subject to the terms of the Mozilla Public 910N/A - License, v. 2.0. If a copy of the MPL was not distributed with this 98N/A<!-- Converted by db4-upgrade version 1.0 --> 98N/A <
date>2007-06-18</
date>
98N/A <
corpname>ISC</
corpname>
98N/A <
corpauthor>Internet Systems Consortium, Inc.</
corpauthor>
98N/A <
refentrytitle>lwres_hstrerror</
refentrytitle>
98N/A <
manvolnum>3</
manvolnum>
98N/A <
refmiscinfo>BIND9</
refmiscinfo>
98N/A <
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
98N/A <
refname>lwres_herror</
refname>
911N/A <
refname>lwres_hstrerror</
refname>
911N/A <
refpurpose>lightweight resolver error message generation</
refpurpose>
98N/A<
function>lwres_herror</
function></
funcdef>
98N/A <
paramdef>const char *<
parameter>s</
parameter></
paramdef>
98N/A<
function>lwres_hstrerror</
function></
funcdef>
98N/A <
paramdef>int <
parameter>err</
parameter></
paramdef>
98N/A <
refsection><
info><
title>DESCRIPTION</
title></
info>
559N/A <
para><
function>lwres_herror()</
function>
559N/A prints the string <
parameter>s</
parameter> on
761N/A <
type>stderr</
type> followed by the string generated by
761N/A <
function>lwres_hstrerror()</
function> for the error code stored
98N/A in the global variable <
constant>lwres_h_errno</
constant>.
910N/A <
para><
function>lwres_hstrerror()</
function>
910N/A returns an appropriate string for the error code gievn by
910N/A <
parameter>err</
parameter>. The values of the error codes and
761N/A messages are as follows:
<
term><
errorcode>NETDB_SUCCESS</
errorcode></
term>
<
para><
errorname>Resolver Error 0 (no error)</
errorname>
<
term><
errorcode>HOST_NOT_FOUND</
errorcode></
term>
<
para><
errorname>Unknown host</
errorname>
<
term><
errorcode>TRY_AGAIN</
errorcode></
term>
<
para><
errorname>Host name lookup failure</
errorname>
<
term><
errorcode>NO_RECOVERY</
errorcode></
term>
<
para><
errorname>Unknown server error</
errorname>
<
term><
errorcode>NO_DATA</
errorcode></
term>
<
para><
errorname>No address associated with name</
errorname>
<
refsection><
info><
title>RETURN VALUES</
title></
info>
The string <
errorname>Unknown resolver error</
errorname> is returned by
<
function>lwres_hstrerror()</
function>
<
constant>lwres_h_errno</
constant>
is not a valid error code.
<
refsection><
info><
title>SEE ALSO</
title></
info>
<
refentrytitle>herror</
refentrytitle><
manvolnum>3</
manvolnum>
<
refentrytitle>lwres_hstrerror</
refentrytitle><
manvolnum>3</
manvolnum>