Permalink
Browse files

log client IP for immediate SERVFAIL exceptions

  • Loading branch information...
1 parent 7963159 commit 37aa9904d1cc967ba4b5d5e17dbe41485f8cdece @Habbie Habbie committed Dec 9, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/pdns_recursor.cc
@@ -567,7 +567,7 @@ void startDoResolve(void *p)
res = sr.beginResolve(dc->d_mdp.d_qname, QType(dc->d_mdp.d_qtype), dc->d_mdp.d_qclass, ret);
}
catch(ImmediateServFailException &e) {
- L<<Logger::Error<<"Sending SERVFAIL during resolve of '"<<dc->d_mdp.d_qname<<"' because: "<<e.reason<<endl;
+ L<<Logger::Error<<"Sending SERVFAIL to "<<dc->getRemote()<<" during resolve of '"<<dc->d_mdp.d_qname<<"' because: "<<e.reason<<endl;
res = RCode::ServFail;
}

0 comments on commit 37aa990

Please sign in to comment.