|
| 1 | +package main |
| 2 | + |
| 3 | +// build with external golang source code |
| 4 | +// https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/#build-with-external-golang-source-code |
| 5 | + |
| 6 | +import ( |
| 7 | + _ "github.com/caddyserver/caddy/onevent" |
| 8 | + "github.com/coredns/coredns/core/dnsserver" |
| 9 | + "github.com/coredns/coredns/coremain" |
| 10 | + _ "github.com/coredns/coredns/plugin/any" |
| 11 | + _ "github.com/coredns/coredns/plugin/auto" |
| 12 | + _ "github.com/coredns/coredns/plugin/autopath" |
| 13 | + _ "github.com/coredns/coredns/plugin/bind" |
| 14 | + _ "github.com/coredns/coredns/plugin/cache" |
| 15 | + _ "github.com/coredns/coredns/plugin/cancel" |
| 16 | + _ "github.com/coredns/coredns/plugin/chaos" |
| 17 | + _ "github.com/coredns/coredns/plugin/debug" |
| 18 | + _ "github.com/coredns/coredns/plugin/dnssec" |
| 19 | + _ "github.com/coredns/coredns/plugin/dnstap" |
| 20 | + _ "github.com/coredns/coredns/plugin/erratic" |
| 21 | + _ "github.com/coredns/coredns/plugin/errors" |
| 22 | + _ "github.com/coredns/coredns/plugin/etcd" |
| 23 | + _ "github.com/coredns/coredns/plugin/file" |
| 24 | + _ "github.com/coredns/coredns/plugin/forward" |
| 25 | + _ "github.com/coredns/coredns/plugin/grpc" |
| 26 | + _ "github.com/coredns/coredns/plugin/health" |
| 27 | + _ "github.com/coredns/coredns/plugin/hosts" |
| 28 | + _ "github.com/coredns/coredns/plugin/k8s_external" |
| 29 | + _ "github.com/coredns/coredns/plugin/loadbalance" |
| 30 | + _ "github.com/coredns/coredns/plugin/log" |
| 31 | + _ "github.com/coredns/coredns/plugin/loop" |
| 32 | + _ "github.com/coredns/coredns/plugin/metadata" |
| 33 | + _ "github.com/coredns/coredns/plugin/metrics" |
| 34 | + _ "github.com/coredns/coredns/plugin/nsid" |
| 35 | + _ "github.com/coredns/coredns/plugin/pprof" |
| 36 | + _ "github.com/coredns/coredns/plugin/ready" |
| 37 | + _ "github.com/coredns/coredns/plugin/reload" |
| 38 | + _ "github.com/coredns/coredns/plugin/rewrite" |
| 39 | + _ "github.com/coredns/coredns/plugin/root" |
| 40 | + _ "github.com/coredns/coredns/plugin/route53" |
| 41 | + _ "github.com/coredns/coredns/plugin/secondary" |
| 42 | + _ "github.com/coredns/coredns/plugin/template" |
| 43 | + _ "github.com/coredns/coredns/plugin/tls" |
| 44 | + _ "github.com/coredns/coredns/plugin/trace" |
| 45 | + _ "github.com/coredns/coredns/plugin/whoami" |
| 46 | + |
| 47 | + _ "github.com/fabedge/fab-dns/pkg/fabdns" |
| 48 | +) |
| 49 | + |
| 50 | +var directives = []string{ |
| 51 | + "metadata", |
| 52 | + "cancel", |
| 53 | + "tls", |
| 54 | + "reload", |
| 55 | + "nsid", |
| 56 | + "root", |
| 57 | + "bind", |
| 58 | + "debug", |
| 59 | + "trace", |
| 60 | + "ready", |
| 61 | + "health", |
| 62 | + "pprof", |
| 63 | + "prometheus", |
| 64 | + "errors", |
| 65 | + "log", |
| 66 | + "dnstap", |
| 67 | + "any", |
| 68 | + "chaos", |
| 69 | + "loadbalance", |
| 70 | + "cache", |
| 71 | + "rewrite", |
| 72 | + "dnssec", |
| 73 | + "autopath", |
| 74 | + "template", |
| 75 | + "hosts", |
| 76 | + "route53", |
| 77 | + "k8s_external", |
| 78 | + "fabdns", |
| 79 | + "file", |
| 80 | + "auto", |
| 81 | + "secondary", |
| 82 | + "etcd", |
| 83 | + "loop", |
| 84 | + "forward", |
| 85 | + "grpc", |
| 86 | + "erratic", |
| 87 | + "whoami", |
| 88 | + "on", |
| 89 | +} |
| 90 | + |
| 91 | +func init() { |
| 92 | + dnsserver.Directives = directives |
| 93 | +} |
| 94 | + |
| 95 | +func main() { |
| 96 | + coremain.Run() |
| 97 | +} |
0 commit comments