plugin/k8s_external: Set authoritative bit in responses (#5284)

set authoritative bit in responses

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
Chris O'Haver 2022-04-12 11:01:15 -04:00 committed by GitHub
parent 83021637b3
commit e60c179194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 0 deletions

View file

@ -89,6 +89,7 @@ func (e *External) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Ms
m := new(dns.Msg)
m.SetReply(state.Req)
m.Authoritative = true
if len(svc) == 0 {
m.Rcode = rcode