mirror of
https://github.com/coredns/coredns.git
synced 2026-07-12 10:40:10 -04:00
plugin/pkg/response: classify nxdomain without soa as denial (#8199)
Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
10
plugin/cache/cache_test.go
vendored
10
plugin/cache/cache_test.go
vendored
@@ -122,6 +122,16 @@ func TestCacheInsertion(t *testing.T) {
|
||||
},
|
||||
shouldCache: true,
|
||||
},
|
||||
{
|
||||
name: "test dns.RcodeNameError without SOA does not cache",
|
||||
in: test.Case{
|
||||
Rcode: dns.RcodeNameError,
|
||||
Qname: "1.1.168.192.in-addr.arpa.",
|
||||
Qtype: dns.TypePTR,
|
||||
RecursionAvailable: true,
|
||||
},
|
||||
shouldCache: false,
|
||||
},
|
||||
{
|
||||
name: "test dns.RcodeServerFailure cache",
|
||||
out: test.Case{
|
||||
|
||||
Reference in New Issue
Block a user