Count DNS_R_COVERINGNSEC as a cache {query}hit
Note when synthesising answer involving wildcards we look in the cache multiple times, once for the QNAME and once for the wildcard name which is constucted by looking at the names from the covering NSEC return by the QNAME miss.
This commit is contained in:
@@ -1187,6 +1187,7 @@ dns_cache_updatestats(dns_cache_t *cache, isc_result_t result) {
|
||||
case DNS_R_DNAME:
|
||||
case DNS_R_GLUE:
|
||||
case DNS_R_ZONECUT:
|
||||
case DNS_R_COVERINGNSEC:
|
||||
isc_stats_increment(cache->stats,
|
||||
dns_cachestatscounter_queryhits);
|
||||
break;
|
||||
|
||||
@@ -792,6 +792,7 @@ update_cachestats(dns_rbtdb_t *rbtdb, isc_result_t result) {
|
||||
case DNS_R_DELEGATION:
|
||||
case DNS_R_NCACHENXDOMAIN:
|
||||
case DNS_R_NCACHENXRRSET:
|
||||
case DNS_R_COVERINGNSEC:
|
||||
isc_stats_increment(rbtdb->cachestats,
|
||||
dns_cachestatscounter_hits);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user