From: Peter van Dijk Date: Thu, 12 Sep 2024 14:49:29 +0000 (+0200) Subject: sdig: report Question vs. Reply correctly X-Git-Tag: rec-5.2.0-alpha1~34^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1956b40cf746ded6727e7a0269944f74ab52f62c;p=thirdparty%2Fpdns.git sdig: report Question vs. Reply correctly --- 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