mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-27 16:24:19 -04:00 
			
		
		
		
	middleware/{file, auto}: resolve external CNAMEs
Do the same thing as in etcd and give the option of externally resolving CNAME. This is needed when CoreDNS is a proxy as well is serving zones.
This commit is contained in:
		| @@ -9,6 +9,7 @@ import ( | ||||
| 	"github.com/miekg/coredns/middleware" | ||||
| 	"github.com/miekg/coredns/middleware/file" | ||||
| 	"github.com/miekg/coredns/middleware/metrics" | ||||
| 	"github.com/miekg/coredns/middleware/proxy" | ||||
| 	"github.com/miekg/coredns/request" | ||||
|  | ||||
| 	"github.com/miekg/dns" | ||||
| @@ -33,6 +34,7 @@ type ( | ||||
| 		// In the future this should be something like ZoneMeta that contains all this stuff. | ||||
| 		transferTo []string | ||||
| 		noReload   bool | ||||
| 		Proxy      proxy.Proxy // Proxy for looking up names during the resolution process | ||||
|  | ||||
| 		duration time.Duration | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user