mirror of
https://github.com/coredns/coredns.git
synced 2026-07-11 10:10:10 -04:00
plugin/hosts: fall through unsupported query types (#8193)
This commit is contained in:
@@ -50,6 +50,10 @@ func (h Hosts) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
|
||||
case dns.TypeAAAA:
|
||||
ips := h.LookupStaticHostV6(qname)
|
||||
answers = aaaa(qname, h.options.ttl, ips)
|
||||
default:
|
||||
if h.Fall.Through(qname) {
|
||||
return plugin.NextOrFailure(h.Name(), h.Next, ctx, w, r)
|
||||
}
|
||||
}
|
||||
|
||||
// Only on NXDOMAIN we will fallthrough.
|
||||
|
||||
Reference in New Issue
Block a user