diff --git a/app/dns/nameserver_udp.go b/app/dns/nameserver_udp.go index 7d307b36..967576bc 100644 --- a/app/dns/nameserver_udp.go +++ b/app/dns/nameserver_udp.go @@ -141,6 +141,7 @@ func (s *ClassicNameServer) HandleResponse(ctx context.Context, packet *udp_prot // and add EDNS0 option opt := new(dnsmessage.Resource) common.Must(opt.Header.SetEDNS0(1350, 0xfe00, true)) + opt.Body = &dnsmessage.OPTResource{} newMsg := *req.msg newReq := *req newMsg.Additionals = append(newMsg.Additionals, *opt)