aboutsummaryrefslogtreecommitdiff
path: root/core/dnsserver/directives.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/dnsserver/directives.go')
-rw-r--r--core/dnsserver/directives.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/core/dnsserver/directives.go b/core/dnsserver/directives.go
new file mode 100644
index 000000000..78a8a11f7
--- /dev/null
+++ b/core/dnsserver/directives.go
@@ -0,0 +1,32 @@
+package dnsserver
+
+// Add here, and in core/coredns.go to use them.
+
+// Directives are registered in the order they should be
+// executed.
+//
+// Ordering is VERY important. Every middleware will
+// feel the effects of all other middleware below
+// (after) them during a request, but they must not
+// care what middleware above them are doing.
+var Directives = []string{
+ "bind",
+ "health",
+ "pprof",
+
+ "prometheus",
+ "errors",
+ "log",
+ "chaos",
+ "cache",
+
+ "rewrite",
+ "loadbalance",
+
+ "dnssec",
+ "file",
+ "secondary",
+ "etcd",
+ "kubernetes",
+ "proxy",
+}