fix and document zone-match regex-no-match case (#5180)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver
2022-05-13 23:23:28 -04:00
committed by GitHub
parent dbb8a12394
commit 4d1d9adb0e
3 changed files with 12 additions and 11 deletions

View File

@@ -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
}