REFUSED responses are fine for filtering resolvers

This commit is contained in:
Frank Denis 2018-05-11 03:31:25 +02:00
parent 7774d9cf05
commit 255423588c
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,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 == 2 { // SERVFAIL
dlog.Infof("Server [%v] returned temporary error code [%v] -- Upstream server may be experiencing connectivity issues", serverInfo.Name, rcode)
serverInfo.noticeFailure(proxy)
} else {