Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
cd027577
Commit
cd027577
authored
Oct 15, 1999
by
Bob Halley
Browse files
add negative caching result codes
parent
6bd80c2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/dns/include/dns/db.h
View file @
cd027577
...
...
@@ -674,7 +674,7 @@ dns_db_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
* DNS_R_NXDOMAIN The desired name does not
* exist.
*
* DNS_R_NXR
DATA
SET The desired name exists, but
* DNS_R_NXR
R
SET
The desired name exists, but
* the desired type does not.
*
* DNS_R_NXGLUE The desired name exists, but
...
...
@@ -694,8 +694,17 @@ dns_db_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
* use its nameserver(s) of last
* resort (e.g. root hints).
*
* XXX There will be a result codes for negative cache entries
* in the future.
* DNS_R_NCACHENXDOMAIN The desired name does not
* exist. 'node' is bound to the
* cache node with the desired
* name, and 'rdataset' contains
* the negative caching proof.
*
* DNS_R_NCACHENXRRSET The desired type does not
* exist. 'node' is bound to the
* cache node with the desired
* name, and 'rdataset' contains
* the negative caching proof.
*
* Error results:
*
...
...
lib/dns/include/dns/result.h
View file @
cd027577
...
...
@@ -98,8 +98,10 @@ typedef isc_result_t dns_result_t; /* XXXRTH for legacy use only */
#define DNS_R_HINT (ISC_RESULTCLASS_DNS + 48)
#define DNS_R_DROP (ISC_RESULTCLASS_DNS + 49)
#define DNS_R_NOTLOADED (ISC_RESULTCLASS_DNS + 50)
#define DNS_R_NCACHENXDOMAIN (ISC_RESULTCLASS_DNS + 51)
#define DNS_R_NCACHENXRRSET (ISC_RESULTCLASS_DNS + 52)
#define DNS_R_NRESULTS 5
1
/* Number of results */
#define DNS_R_NRESULTS 5
3
/* Number of results */
/*
* DNS wire format rcodes
...
...
lib/dns/result.c
View file @
cd027577
...
...
@@ -78,6 +78,8 @@ static char *text[DNS_R_NRESULTS] = {
"hint"
,
/* 48 */
"drop"
,
/* 49 */
"zone not loaded"
,
/* 50 */
"ncache nxdomain"
,
/* 51 */
"ncache nxrrset"
,
/* 52 */
};
static
char
*
rcode_text
[
DNS_R_NRCODERESULTS
]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment