diff --git a/resolver/parallel_best_resolver.go b/resolver/parallel_best_resolver.go index 4d9f7f6b7..5346f89ff 100644 --- a/resolver/parallel_best_resolver.go +++ b/resolver/parallel_best_resolver.go @@ -58,6 +58,8 @@ func (r *upstreamResolverStatus) resolve(req *model.Request, ch chan<- requestRe if err != nil { // update the last error time r.lastErrorTime.Store(time.Now()) + + err = fmt.Errorf("%s: %w", r.resolver, err) } ch <- requestResponse{