mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Stop the caddy message and start our own init notifications. Log the version of CoreDNS when starting up. Fix all middleware's setup functions so that return the error prefixed with *which* middleware was failing; leads to better debuggable errors when starting up.
		
			
				
	
	
		
			28 lines
		
	
	
		
			985 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			985 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package core
 | |
| 
 | |
| import (
 | |
| 	// plug in the server
 | |
| 	_ "github.com/miekg/coredns/core/dnsserver"
 | |
| 
 | |
| 	// plug in the standard directives
 | |
| 	_ "github.com/miekg/coredns/middleware/bind"
 | |
| 	_ "github.com/miekg/coredns/middleware/cache"
 | |
| 	_ "github.com/miekg/coredns/middleware/chaos"
 | |
| 	_ "github.com/miekg/coredns/middleware/dnssec"
 | |
| 	_ "github.com/miekg/coredns/middleware/errors"
 | |
| 	_ "github.com/miekg/coredns/middleware/etcd"
 | |
| 	_ "github.com/miekg/coredns/middleware/file"
 | |
| 	_ "github.com/miekg/coredns/middleware/health"
 | |
| 	_ "github.com/miekg/coredns/middleware/kubernetes"
 | |
| 	_ "github.com/miekg/coredns/middleware/loadbalance"
 | |
| 	_ "github.com/miekg/coredns/middleware/log"
 | |
| 	_ "github.com/miekg/coredns/middleware/metrics"
 | |
| 	_ "github.com/miekg/coredns/middleware/pprof"
 | |
| 	_ "github.com/miekg/coredns/middleware/proxy"
 | |
| 	_ "github.com/miekg/coredns/middleware/rewrite"
 | |
| 	_ "github.com/miekg/coredns/middleware/secondary"
 | |
| )
 | |
| 
 | |
| // Quiet mode will not show any informative output on initialization.
 | |
| var Quiet bool
 |