Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some better dnsdist -v logging on queries that get dropped, timed out or received #5253

Merged
merged 1 commit into from Apr 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion pdns/dnsdist.cc
Expand Up @@ -1226,7 +1226,9 @@ try
#endif
sendUDPResponse(cs->udpFD, response, responseLen, 0, dest, remote);
}
vinfolog("Dropped query for %s|%s from %s, no policy applied", dq.qname->toString(), QType(dq.qtype).getName(), remote.toStringWithPort());
continue;

}

ss->queries++;
Expand Down Expand Up @@ -1294,7 +1296,7 @@ try
g_stats.downstreamSendErrors++;
}

vinfolog("Got query from %s, relayed to %s", remote.toStringWithPort(), ss->getName());
vinfolog("Got query for %s|%s from %s, relayed to %s", ids->qname.toString(), QType(ids->qtype).getName(), remote.toStringWithPort(), ss->getName());
}
catch(std::exception& e){
vinfolog("Got an error in UDP question thread while parsing a query from %s, id %d: %s", remote.toStringWithPort(), queryId, e.what());
Expand Down Expand Up @@ -1533,6 +1535,9 @@ void* healthChecksThread()
dss->reuseds++;
--dss->outstanding;
g_stats.downstreamTimeouts++; // this is an 'actively' discovered timeout
vinfolog("Had a downstream timeout from %s (%s) for query for %s|%s from %s",
dss->remote.toStringWithPort(), dss->name,
ids.qname.toString(), QType(ids.qtype).getName(), ids.origRemote.toStringWithPort());

struct timespec ts;
gettime(&ts);
Expand Down