diff --git a/json-dns/unmarshal.go b/json-dns/unmarshal.go index 4bda705..c18a303 100644 --- a/json-dns/unmarshal.go +++ b/json-dns/unmarshal.go @@ -38,7 +38,7 @@ func PrepareReply(req *dns.Msg) *dns.Msg { reply := new(dns.Msg) reply.Id = req.Id reply.Response = true - reply.Opcode = reply.Opcode + reply.Opcode = req.Opcode reply.RecursionDesired = req.RecursionDesired reply.RecursionAvailable = req.RecursionDesired reply.CheckingDisabled = req.CheckingDisabled