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 (