diff options
author | 2016-11-09 21:26:49 +0000 | |
---|---|---|
committer | 2016-11-09 21:26:49 +0000 | |
commit | 0919216d3ca513d6ae18ffb0ed35b6a89fd393c6 (patch) | |
tree | 4dc5882a582b17778869428c707d6ab671c26065 /middleware/file/zone.go | |
parent | a8287bb04dc7861f349c96ba790e4a007dc7657c (diff) | |
download | coredns-0919216d3ca513d6ae18ffb0ed35b6a89fd393c6.tar.gz coredns-0919216d3ca513d6ae18ffb0ed35b6a89fd393c6.tar.zst coredns-0919216d3ca513d6ae18ffb0ed35b6a89fd393c6.zip |
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.
Diffstat (limited to 'middleware/file/zone.go')
-rw-r--r-- | middleware/file/zone.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/middleware/file/zone.go b/middleware/file/zone.go index 21571287d..0c0df1a1f 100644 --- a/middleware/file/zone.go +++ b/middleware/file/zone.go @@ -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. |