From: Remi Gacogne Date: Mon, 27 Mar 2023 11:41:36 +0000 (+0200) Subject: dnsdist: Log when a TC=1 response is received for a DoH query X-Git-Tag: rec-5.0.0-alpha1~19^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8330238fdaf135664dfd610970427f1662967f8;p=thirdparty%2Fpdns.git dnsdist: Log when a TC=1 response is received for a DoH query --- diff --git a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc index aefa50d777..8e225ee2ca 100644 --- a/pdns/dnsdistdist/dnsdist-nghttp2-in.cc +++ b/pdns/dnsdistdist/dnsdist-nghttp2-in.cc @@ -189,6 +189,7 @@ void IncomingHTTP2Connection::handleResponse(const struct timeval& now, TCPRespo dnsheader* responseDH = reinterpret_cast(response.d_buffer.data()); if (responseDH->tc && state.d_packet && state.d_packet->size() > state.d_proxyProtocolPayloadSize && state.d_packet->size() - state.d_proxyProtocolPayloadSize > sizeof(dnsheader)) { + vinfolog("Response received from backend %s via UDP, for query %d received from %s via DoH, is truncated, retrying over TCP", response.d_ds->getNameWithAddr(), state.d_streamID, state.origRemote.toStringWithPort()); auto& query = *state.d_packet; dnsheader* queryDH = reinterpret_cast(query.data() + state.d_proxyProtocolPayloadSize); /* restoring the original ID */