diff --git a/agent/dns.go b/agent/dns.go index dd34b3b8bd..8658eea9d5 100644 --- a/agent/dns.go +++ b/agent/dns.go @@ -1048,7 +1048,7 @@ func (d *DNSServer) dispatch(remoteAddr net.Addr, req, resp *dns.Msg, cfg *dnsRe A: ip, } if req.Question[0].Qtype != dns.TypeA && req.Question[0].Qtype != dns.TypeANY { - resp.Extra = append(resp.Answer, aRecord) + resp.Extra = append(resp.Extra, aRecord) } else { resp.Answer = append(resp.Answer, aRecord) }