mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
hosts middleware should return NoError if other records exist in the zone (#782)
* hosts middleware should return NoError if other records exist in the zone * return RcodeSuccess for hosts queries for non A,AAAA records if the zone exists * return NXDOMAIN instead of REFUSED when zone is not found
This commit is contained in:
committed by
John Belamaric
parent
58006cf847
commit
6f152dd8fd
@@ -78,6 +78,14 @@ var hostsTestCases = []test.Case{
|
||||
test.PTR("1.0.0.127.in-addr.arpa. 3600 PTR localhost.domain."),
|
||||
},
|
||||
},
|
||||
{
|
||||
Qname: "example.org.", Qtype: dns.TypeAAAA,
|
||||
Answer: []dns.RR{},
|
||||
},
|
||||
{
|
||||
Qname: "example.org.", Qtype: dns.TypeMX,
|
||||
Answer: []dns.RR{},
|
||||
},
|
||||
}
|
||||
|
||||
const hostsExample = `
|
||||
|
||||
Reference in New Issue
Block a user