diff --git a/app/dns/nameserver_udp.go b/app/dns/nameserver_udp.go index 88b41497..7d307b36 100644 --- a/app/dns/nameserver_udp.go +++ b/app/dns/nameserver_udp.go @@ -147,7 +147,7 @@ func (s *ClassicNameServer) HandleResponse(ctx context.Context, packet *udp_prot newMsg.ID = s.newReqID() newReq.msg = &newMsg s.addPendingRequest(&newReq) - b, _ := dns.PackMessage(req.msg) + b, _ := dns.PackMessage(newReq.msg) s.udpServer.Dispatch(toDnsContext(newReq.ctx, s.address.String()), *s.address, b) return }