mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Fix dns-01-003 (#1634)
* plugin/{cache,forward,proxy}: don't allow responses that are bogus
Responses that are not matching what we've been querying for should be
dropped. They are converted into FormErrs by forward and proxy; as a 2nd
backstop cache will also not cache these.
* plug
* add explicit test
This commit is contained in:
1
plugin/cache/README.md
vendored
1
plugin/cache/README.md
vendored
@@ -57,6 +57,7 @@ If monitoring is enabled (via the *prometheus* directive) then the following met
|
||||
* `coredns_cache_capacity{type}` - Total capacity of the cache by cache type.
|
||||
* `coredns_cache_hits_total{type}` - Counter of cache hits by cache type.
|
||||
* `coredns_cache_misses_total{}` - Counter of cache misses.
|
||||
* `coredns_cache_drops_total{}` - Counter of dropped messages.
|
||||
|
||||
Cache types are either "denial" or "success".
|
||||
|
||||
|
||||
Reference in New Issue
Block a user