Do not consider SERVFAIL responses as server failures
This commit is contained in:
parent
a938eeff7b
commit
0e65c50989
|
@ -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 == 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)
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue