aboutsummaryrefslogtreecommitdiff
path: root/core/plugin/zplugin.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-07-20 19:45:17 +0100
committerGravatar GitHub <noreply@github.com> 2018-07-20 19:45:17 +0100
commit84ec780ffcf7f4712184803c5ede2473957f0b66 (patch)
treef985e6da00800c03862feb3cae7279ab497ad01e /core/plugin/zplugin.go
parent547f15546563c9d8bb520218cd3c9161394d9d20 (diff)
downloadcoredns-84ec780ffcf7f4712184803c5ede2473957f0b66.tar.gz
coredns-84ec780ffcf7f4712184803c5ede2473957f0b66.tar.zst
coredns-84ec780ffcf7f4712184803c5ede2473957f0b66.zip
New plugin: loop (#1989)
* New plugin: loop Add a plugin that detects loops. It does this by sending an unique query to our selves. If we see the query more than twice we stop the process. If there isn't a loop, the plugin disables it self and becomes a noop plugin. Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'core/plugin/zplugin.go')
-rw-r--r--core/plugin/zplugin.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/plugin/zplugin.go b/core/plugin/zplugin.go
index 80a3edddf..397438663 100644
--- a/core/plugin/zplugin.go
+++ b/core/plugin/zplugin.go
@@ -23,6 +23,7 @@ import (
_ "github.com/coredns/coredns/plugin/kubernetes"
_ "github.com/coredns/coredns/plugin/loadbalance"
_ "github.com/coredns/coredns/plugin/log"
+ _ "github.com/coredns/coredns/plugin/loop"
_ "github.com/coredns/coredns/plugin/metadata"
_ "github.com/coredns/coredns/plugin/metrics"
_ "github.com/coredns/coredns/plugin/nsid"