1LWRES_HSTRERROR(3)                   BIND9                  LWRES_HSTRERROR(3)
2
3
4

NAME

6       lwres_herror, lwres_hstrerror - lightweight resolver error message
7       generation
8

SYNOPSIS

10       #include <lwres/netdb.h>
11
12       void lwres_herror(const char *s);
13
14       const char * lwres_hstrerror(int err);
15

DESCRIPTION

17       lwres_herror() prints the string s on stderr followed by the string
18       generated by lwres_hstrerror() for the error code stored in the global
19       variable lwres_h_errno.
20
21       lwres_hstrerror() returns an appropriate string for the error code
22       gievn by err. The values of the error codes and messages are as
23       follows:
24
25       NETDB_SUCCESS
26           Resolver Error 0 (no error)
27
28       HOST_NOT_FOUND
29           Unknown host
30
31       TRY_AGAIN
32           Host name lookup failure
33
34       NO_RECOVERY
35           Unknown server error
36
37       NO_DATA
38           No address associated with name
39

RETURN VALUES

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

SEE ALSO

45       herror(3), lwres_hstrerror(3).
46

AUTHOR

48       Internet Systems Consortium, Inc.
49
51       Copyright © 2000, 2001, 2004, 2005, 2007, 2014-2016, 2018, 2019
52       Internet Systems Consortium, Inc. ("ISC")
53
54
55
56ISC                               2007-06-18                LWRES_HSTRERROR(3)
Impressum