mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
plugin/file/auto: Write CNAME answer to client even if target lookup is SERVFAIL (#4863)
* write cname answer to client even if target lookup is servfail Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix existing unit test expectations Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -77,10 +77,17 @@ func TestFileUpstreamError(t *testing.T) {
|
||||
},
|
||||
"srvfail": {
|
||||
Qname: "srvfail.example.org.", Qtype: dns.TypeA,
|
||||
Answer: []dns.RR{
|
||||
test.CNAME("srvfail.example.org. 3600 IN CNAME srvfail.example.net."),
|
||||
},
|
||||
Rcode: dns.RcodeServerFailure,
|
||||
},
|
||||
"srvfail-chain": {
|
||||
Qname: "chain2.example.org.", Qtype: dns.TypeA,
|
||||
Answer: []dns.RR{
|
||||
test.CNAME("chain2.example.org. 3600 IN CNAME srvfail.example.org."),
|
||||
test.CNAME("srvfail.example.org. 3600 IN CNAME srvfail.example.net."),
|
||||
},
|
||||
Rcode: dns.RcodeServerFailure,
|
||||
},
|
||||
"nodata": {
|
||||
|
||||
Reference in New Issue
Block a user