Revert "Do not consider SERVFAIL responses as server failures"

This reverts commit 0e65c50989.
This commit is contained in:
Frank Denis 2018-04-06 13:43:09 +02:00
parent 2d27eabf95
commit 8217170a7b
1 changed files with 1 additions and 1 deletions

View File

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