Log servers returning SERVFAIL

This commit is contained in:
Frank Denis 2018-02-22 14:48:08 +01:00
parent 4ec5461b2f
commit eac8732b2b
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ func (proxy *Proxy) processIncomingQuery(serverInfo *ServerInfo, clientProto str
return
}
if rcode := Rcode(response); rcode == 2 || rcode == 5 { // SERVFAIL / REFUSED
dlog.Infof("Server [%v] returned error code [%v] -- It might be experiencing upstream connectivity issues", serverInfo.Name, rcode)
serverInfo.noticeFailure(proxy)
} else {
serverInfo.noticeSuccess(proxy)