mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
plugin/loop: tweak loop detected msg, add troubleshooting section (#2185)
Automatically submitted.
This commit is contained in:
committed by
corbot[bot]
parent
6ed88fab74
commit
6d2bc0a8f2
@@ -49,7 +49,7 @@ func (l *Loop) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
|
||||
}
|
||||
|
||||
if l.seen() > 2 {
|
||||
log.Fatalf("Seen \"HINFO IN %s\" more than twice, loop detected", l.qname)
|
||||
log.Fatalf("Forwarding loop detected in \"%s\" zone. Exiting. See https://coredns.io/plugins/loop#troubleshooting. Probe query: \"HINFO %s\".", l.zone, l.qname)
|
||||
}
|
||||
|
||||
return plugin.NextOrFailure(l.Name(), l.Next, ctx, w, r)
|
||||
|
||||
Reference in New Issue
Block a user