From f94c63ed5b4fe028a74ce074b66afcbad7b426f4 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Sun, 25 Nov 2018 23:32:28 +0300 Subject: [PATCH] Set default ratelimit to 30/sec --- config.go | 2 +- coredns.go | 2 +- coredns_plugin/ratelimit/ratelimit.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.go b/config.go index 42589d05..2db48d38 100644 --- a/config.go +++ b/config.go @@ -253,7 +253,7 @@ const coreDNSConfigTemplate = `.:{{.Port}} { {{end}} }{{end}} {{.Pprof}} - ratelimit 30 + ratelimit hosts { fallthrough } diff --git a/coredns.go b/coredns.go index c56a8f00..45854056 100644 --- a/coredns.go +++ b/coredns.go @@ -65,8 +65,8 @@ var directives = []string{ "prometheus", "errors", "log", - "dnsfilter", "ratelimit", + "dnsfilter", "dnstap", "chaos", "loadbalance", diff --git a/coredns_plugin/ratelimit/ratelimit.go b/coredns_plugin/ratelimit/ratelimit.go index fbfbc2f0..5d8abc70 100644 --- a/coredns_plugin/ratelimit/ratelimit.go +++ b/coredns_plugin/ratelimit/ratelimit.go @@ -23,7 +23,7 @@ import ( "golang.org/x/net/context" ) -const defaultRatelimit = 100 +const defaultRatelimit = 30 const defaultResponseSize = 1000 var (