From: Remi Gacogne Date: Fri, 28 Jun 2019 14:08:18 +0000 (+0200) Subject: auth: Fix the accounting of servfail-queries in the distributor X-Git-Tag: dnsdist-1.4.0-rc1~82^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c293d1139b0a730c7193ff956b59eb3fc109fb7;p=pdns auth: Fix the accounting of servfail-queries in the distributor This was broken since eb029b8efe0217b39c5cf34235b565b4c8d6e95e which introduced a specific type of DNSName,qtype ring. --- diff --git a/pdns/distributor.hh b/pdns/distributor.hh index ecc1509cd..6f99c62a6 100644 --- a/pdns/distributor.hh +++ b/pdns/distributor.hh @@ -222,7 +222,7 @@ retry: a->setRcode(RCode::ServFail); S.inc("servfail-packets"); - S.ringAccount("servfail-queries",QD->Q->qdomain.toLogString()); + S.ringAccount("servfail-queries", QD->Q->qdomain, QD->Q->qtype); delete QD->Q; } else { @@ -239,7 +239,7 @@ retry: a->setRcode(RCode::ServFail); S.inc("servfail-packets"); - S.ringAccount("servfail-queries",QD->Q->qdomain.toLogString()); + S.ringAccount("servfail-queries", QD->Q->qdomain, QD->Q->qtype); delete QD->Q; } else { @@ -286,7 +286,7 @@ retry: a->setRcode(RCode::ServFail); S.inc("servfail-packets"); - S.ringAccount("servfail-queries",q->qdomain.toLogString()); + S.ringAccount("servfail-queries", q->qdomain, q->qtype); } else { g_log<setRcode(RCode::ServFail); S.inc("servfail-packets"); - S.ringAccount("servfail-queries",q->qdomain.toLogString()); + S.ringAccount("servfail-queries", q->qdomain, q->qtype); } else { g_log<d_dt.set(); q->qdomain=DNSName(std::to_string(n)); + q->qtype = QType(QType::A); d->question(q, report2); }