mirror of
https://github.com/coredns/coredns.git
synced 2026-07-13 19:20:10 -04:00
request/cache: bind responses and entries to QCLASS (#8272)
Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
2
plugin/cache/ad_bit_test.go
vendored
2
plugin/cache/ad_bit_test.go
vendored
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
// TestCacheADBitNotPartitioned guards the fix for issue #6642.
|
||||
//
|
||||
// The cache key is hashed on qname, qtype, the DO bit and the CD bit, but
|
||||
// The cache key is hashed on qname, qtype, qclass, the DO bit and the CD bit, but
|
||||
// deliberately NOT on the AD bit (AD must not partition the cache). This means
|
||||
// a single cache entry serves both AD-requesting and non-AD-requesting clients,
|
||||
// so the AD bit returned to a client must be derived per request from the
|
||||
|
||||
Reference in New Issue
Block a user