From: Remi Gacogne Date: Tue, 26 Apr 2022 07:54:15 +0000 (+0200) Subject: dnsdist: Include the address of the backend in 'relayed to' messages X-Git-Tag: auth-4.8.0-alpha0~121^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11578%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Include the address of the backend in 'relayed to' messages Not all backends have a name. --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index d13e8f69b9..a4805d03e4 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1577,7 +1577,7 @@ static void processUDPQuery(ClientState& cs, LocalHolders& holders, const struct ++g_stats.downstreamSendErrors; } - vinfolog("Got query for %s|%s from %s, relayed to %s", ids->qname.toLogString(), QType(ids->qtype).toString(), proxiedRemote.toStringWithPort(), ss->getName()); + vinfolog("Got query for %s|%s from %s, relayed to %s", ids->qname.toLogString(), QType(ids->qtype).toString(), proxiedRemote.toStringWithPort(), ss->getNameWithAddr()); } catch(const std::exception& e){ vinfolog("Got an error in UDP question thread while parsing a query from %s, id %d: %s", proxiedRemote.toStringWithPort(), queryId, e.what());