diff options
Diffstat (limited to 'plugin/k8s_external/apex.go')
-rw-r--r-- | plugin/k8s_external/apex.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/k8s_external/apex.go b/plugin/k8s_external/apex.go index 0ce00a7c3..935876cf8 100644 --- a/plugin/k8s_external/apex.go +++ b/plugin/k8s_external/apex.go @@ -11,6 +11,7 @@ import ( func (e *External) serveApex(state request.Request) (int, error) { m := new(dns.Msg) m.SetReply(state.Req) + m.Authoritative = true switch state.QType() { case dns.TypeSOA: m.Answer = []dns.RR{e.soa(state)} @@ -37,6 +38,7 @@ func (e *External) serveSubApex(state request.Request) (int, error) { m := new(dns.Msg) m.SetReply(state.Req) + m.Authoritative = true // base is either dns. of ns1.dns (or another name), if it's longer return nxdomain switch labels := dns.CountLabel(base); labels { |