mirror of
https://github.com/coredns/coredns.git
synced 2026-07-12 18:50: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/cache_test.go
vendored
2
plugin/cache/cache_test.go
vendored
@@ -1072,7 +1072,7 @@ func TestServfailDoesNotShadowPositiveCache(t *testing.T) {
|
||||
posMsg.Response = true
|
||||
posMsg.Answer = []dns.RR{test.A("example.org. 120 IN A 127.0.0.53")}
|
||||
posItem := newItem(posMsg, now.Add(-30*time.Second), 120*time.Second)
|
||||
k := hash("example.org.", dns.TypeA, false, false)
|
||||
k := hash("example.org.", dns.TypeA, dns.ClassINET, false, false)
|
||||
c.pcache.Add(k, posItem)
|
||||
|
||||
// Manually insert a SERVFAIL entry in ncache (stored just now, TTL 5s).
|
||||
|
||||
Reference in New Issue
Block a user