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:
parent
a8287bb04d
commit
0919216d3c
10 changed files with 125 additions and 7 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/miekg/coredns/middleware/file/tree"
|
||||
"github.com/miekg/coredns/middleware/proxy"
|
||||
"github.com/miekg/coredns/request"
|
||||
|
||||
"github.com/fsnotify/fsnotify"
|
||||
|
@ -31,6 +32,7 @@ type Zone struct {
|
|||
NoReload bool
|
||||
reloadMu sync.RWMutex
|
||||
ReloadShutdown chan bool
|
||||
Proxy proxy.Proxy // Proxy for looking up names during the resolution process
|
||||
}
|
||||
|
||||
// Apex contains the apex records of a zone: SOA, NS and their potential signatures.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue