plugin/loop: tweak loop detected msg, add troubleshooting section (#2185)

Automatically submitted.
This commit is contained in:
Chris O'Haver 2018-10-12 13:24:40 -04:00 committed by corbot[bot]
parent 6ed88fab74
commit 6d2bc0a8f2
2 changed files with 39 additions and 3 deletions

View file

@ -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)