Log servers returning SERVFAIL
This commit is contained in:
parent
4ec5461b2f
commit
eac8732b2b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue