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:
@@ -117,6 +117,14 @@ var dnsTestCases = []test.Case{
|
||||
},
|
||||
Ns: miekAuth,
|
||||
},
|
||||
{
|
||||
Qname: "ext-cname.miek.nl.", Qtype: dns.TypeA,
|
||||
Answer: []dns.RR{
|
||||
test.CNAME("ext-cname.miek.nl. 1800 IN CNAME example.com."),
|
||||
},
|
||||
Rcode: dns.RcodeServerFailure,
|
||||
Ns: miekAuth,
|
||||
},
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -218,4 +226,6 @@ archive IN CNAME a
|
||||
dname IN DNAME x
|
||||
|
||||
srv IN SRV 10 10 8080 a.miek.nl.
|
||||
mx IN MX 10 a.miek.nl.`
|
||||
mx IN MX 10 a.miek.nl.
|
||||
|
||||
ext-cname IN CNAME example.com.`
|
||||
|
||||
Reference in New Issue
Block a user