lwres_herror(3)

lwres_herror3

Lightweight resolver error message generation

Part of lwres_hstrerror(3).

Usage

#include <lwres/netdb.h>

void lwres_herror(const char *s);

const char * lwres_hstrerror(int err);

Overview

lwres_herror() prints the string s on stderr followed by the string generated by lwres_hstrerror() for the error code stored in the global variable lwres_h_errno.

lwres_hstrerror() returns an appropriate string for the error code gievn by err. The values of the error codes and messages are as follows:

NETDB_SUCCESS

Resolver Error 0 (no error)

HOST_NOT_FOUND

Unknown host

TRY_AGAIN

Host name lookup failure

NO_RECOVERY

Unknown server error

NO_DATA

No address associated with name

Return values

The string Unknown resolver error is returned by lwres_hstrerror() when the value of lwres_h_errno is not a valid error code.

Releases

9 releases since Debian 3.0 (Woody); the text changed 8 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8
  8. 9
  9. 10

Author

Internet Systems Consortium, Inc.

From libbind-dev 1:9.11.5.P4+dfsg-5.1+deb10u7 in Debian 10 (Buster). Parsed by carta from the page's man source.