From 4651cc621dcf5c00bc7263c422beaef47a2e56ae Mon Sep 17 00:00:00 2001 From: Uladzimir Trehubenka Date: Mon, 18 Feb 2019 10:12:14 +0300 Subject: [PATCH] plugin/forward: fixed debug dump output on FORMERR (#2576) --- plugin/forward/forward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/forward/forward.go b/plugin/forward/forward.go index 66526509b..0b043e070 100644 --- a/plugin/forward/forward.go +++ b/plugin/forward/forward.go @@ -143,7 +143,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg // Check if the reply is correct; if not return FormErr. if !state.Match(ret) { - debug.Hexdumpf(ret, "Wrong reply for id: %d, %s/%d", state.QName(), state.QType()) + debug.Hexdumpf(ret, "Wrong reply for id: %d, %s %d", ret.Id, state.QName(), state.QType()) formerr := state.ErrorMessage(dns.RcodeFormatError) w.WriteMsg(formerr)