From 6e0f9707d85352c107d7b1963cd1fd0b51a9fb63 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Tue, 28 Nov 2000 23:32:04 +0000 Subject: [PATCH] Make error codes for DNS errors. --- includes/isc/result.h | 15 ++++++++++++++- omapip/result.c | 13 +++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/includes/isc/result.h b/includes/isc/result.h index 8fc4a79f..bda0da91 100644 --- a/includes/isc/result.h +++ b/includes/isc/result.h @@ -75,8 +75,21 @@ ISC_LANG_BEGINDECLS #define ISC_R_KEY_UNKNOWN 47 #define ISC_R_INVALIDKEY 48 #define ISC_R_INCOMPLETE 49 +#define ISC_R_FORMERR 50 +#define ISC_R_SERVFAIL 51 +#define ISC_R_NXDOMAIN 52 +#define ISC_R_NOTIMPL 53 +#define ISC_R_REFUSED 54 +#define ISC_R_YXDOMAIN 55 +#define ISC_R_YXRRSET 56 +#define ISC_R_NXRRSET 57 +#define ISC_R_NOTAUTH 58 +#define ISC_R_NOTZONE 59 +#define ISC_R_BADSIG 60 +#define ISC_R_BADKEY 61 +#define ISC_R_BADTIME 62 -#define ISC_R_NRESULTS 50 /* Number of results */ +#define ISC_R_NRESULTS 62 /* Number of results */ const char * isc_result_totext(isc_result_t); isc_result_t isc_result_register(unsigned int base, diff --git a/omapip/result.c b/omapip/result.c index 4a855f55..b1888e6e 100644 --- a/omapip/result.c +++ b/omapip/result.c @@ -95,6 +95,19 @@ static const char *text[ISC_R_NRESULTS] = { "zone TSIG key not known", /* 47 */ "invalid TSIG key", /* 48 */ "operation in progress", /* 49 */ + "DNS format error", /* 50 */ + "DNS server failed", /* 51 */ + "no such domain", /* 52 */ + "not implemented", /* 53 */ + "refused", /* 54 */ + "domain already exists", /* 55 */ + "RRset already exists", /* 56 */ + "no such RRset", /* 57 */ + "not authorized", /* 58 */ + "not a zone", /* 59 */ + "bad DNS signature", /* 60 */ + "bad DNS key", /* 61 */ + "clock skew too great" /* 62 */ }; const char *isc_result_totext (isc_result_t result)