mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
fix and document zone-match regex-no-match case (#5180)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -81,7 +81,7 @@ func (h Handler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
|
||||
data, match, fthrough := template.match(ctx, state)
|
||||
if !match {
|
||||
if !fthrough {
|
||||
return dns.RcodeNameError, nil
|
||||
return dns.RcodeServerFailure, nil
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user