From 1956b40cf746ded6727e7a0269944f74ab52f62c Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 12 Sep 2024 16:49:29 +0200 Subject: [PATCH] sdig: report Question vs. Reply correctly --- pdns/sdig.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/sdig.cc b/pdns/sdig.cc index 66fc26603e..c6441debe6 100644 --- a/pdns/sdig.cc +++ b/pdns/sdig.cc @@ -94,7 +94,7 @@ static void printReply(const string& reply, bool showflags, bool hidesoadetails, } s_expectedIDs.erase(ntohs(mdp.d_header.id)); - cout << "Reply to question for qname='" << mdp.d_qname.toString() + cout << (mdp.d_header.qr ? "Reply to question" : "Question") << " for qname='" << mdp.d_qname.toString() << "', qtype=" << DNSRecordContent::NumberToType(mdp.d_qtype) << endl; cout << "Rcode: " << mdp.d_header.rcode << " (" << RCode::to_s(mdp.d_header.rcode) << "), RD: " << mdp.d_header.rd -- 2.47.2