Do not consider SERVFAIL responses as server failures

This commit is contained in:
Frank Denis 2018-04-06 02:47:58 +02:00
parent a938eeff7b
commit 0e65c50989
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)
return
}
if rcode := Rcode(response); rcode == 2 || rcode == 5 { // SERVFAIL / REFUSED
if rcode := Rcode(response); rcode == 5 { // REFUSED
dlog.Infof("Server [%v] returned error code [%v] -- It might be experiencing upstream connectivity issues", serverInfo.Name, rcode)
serverInfo.noticeFailure(proxy)
} else {