* add hosts middleware * forgot pointer receiver * add appropriately modified hostsfile tests from golang repo * remove test artifacts, separate hostsfile parsing from caching and opening, remove unused metrics references, move middleware up the chain * refactored the logic for creating records and filtering ip address versions. also got PTR lookups working * Add README.md. Modify config to be more concise. Add zones list to config. Filter PTR responses based on zones list. * add Fallthrough and return correct dns response code otherwise * Simplified Hostsfile to only store hosts in the zones we care about, and by ip version. Added handler tests and improved other tests. * oops, goimports loaded a package from a different repo
32 lines
1.3 KiB
Go
32 lines
1.3 KiB
Go
// generated by directives_generate.go; DO NOT EDIT
|
|
|
|
package core
|
|
|
|
import (
|
|
// Include all middleware.
|
|
_ "github.com/coredns/coredns/middleware/auto"
|
|
_ "github.com/coredns/coredns/middleware/bind"
|
|
_ "github.com/coredns/coredns/middleware/cache"
|
|
_ "github.com/coredns/coredns/middleware/chaos"
|
|
_ "github.com/coredns/coredns/middleware/dnssec"
|
|
_ "github.com/coredns/coredns/middleware/erratic"
|
|
_ "github.com/coredns/coredns/middleware/errors"
|
|
_ "github.com/coredns/coredns/middleware/etcd"
|
|
_ "github.com/coredns/coredns/middleware/file"
|
|
_ "github.com/coredns/coredns/middleware/health"
|
|
_ "github.com/coredns/coredns/middleware/hosts"
|
|
_ "github.com/coredns/coredns/middleware/kubernetes"
|
|
_ "github.com/coredns/coredns/middleware/loadbalance"
|
|
_ "github.com/coredns/coredns/middleware/log"
|
|
_ "github.com/coredns/coredns/middleware/metrics"
|
|
_ "github.com/coredns/coredns/middleware/pprof"
|
|
_ "github.com/coredns/coredns/middleware/proxy"
|
|
_ "github.com/coredns/coredns/middleware/reverse"
|
|
_ "github.com/coredns/coredns/middleware/rewrite"
|
|
_ "github.com/coredns/coredns/middleware/root"
|
|
_ "github.com/coredns/coredns/middleware/secondary"
|
|
_ "github.com/coredns/coredns/middleware/tls"
|
|
_ "github.com/coredns/coredns/middleware/trace"
|
|
_ "github.com/coredns/coredns/middleware/whoami"
|
|
_ "github.com/mholt/caddy/startupshutdown"
|
|
)
|