Added ratelimit plugin

This commit is contained in:
Andrey Meshkov
2018-11-25 23:11:36 +03:00
parent cdd2e8ecb4
commit 668dcebf13
3 changed files with 21 additions and 3 deletions

View File

@@ -253,7 +253,8 @@ const coreDNSConfigTemplate = `.:{{.Port}} {
{{end}}
}{{end}}
{{.Pprof}}
hosts {
ratelimit 30
hosts {
fallthrough
}
{{if .UpstreamDNS}}upstream {{range .UpstreamDNS}}{{.}} {{end}} { bootstrap {{.BootstrapDNS}} }{{end}}