From 8bc1c4f291cd2036681ef578b092ca3802213794 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 26 Aug 2020 22:45:11 +0200 Subject: [PATCH] sdig: report non-zero ID in response --- pdns/sdig.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/sdig.cc b/pdns/sdig.cc index 560780b63b..e6e3c71e34 100644 --- a/pdns/sdig.cc +++ b/pdns/sdig.cc @@ -105,6 +105,9 @@ static void fillPacket(vector& packet, const string& q, const string& t static void printReply(const string& reply, bool showflags, bool hidesoadetails) { MOADNSParser mdp(false, reply); + if (mdp.d_header.id) { + cout << "ID is not zero, this response was not meant for us!"<