mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
Implement external lookups for CNAMEs
This commit is contained in:
@@ -34,7 +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
|
||||
proxy proxy.Proxy // Proxy for looking up names during the resolution process
|
||||
|
||||
duration time.Duration
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ func autoParse(c *caddy.Controller) (Auto, error) {
|
||||
args[i] = h + ":53"
|
||||
}
|
||||
}
|
||||
a.loader.Proxy = proxy.New(args)
|
||||
a.loader.proxy = proxy.New(args)
|
||||
|
||||
default:
|
||||
t, _, e := file.TransferParse(c, false)
|
||||
|
||||
@@ -51,6 +51,7 @@ func (a Auto) Walk() error {
|
||||
}
|
||||
|
||||
zo.NoReload = a.loader.noReload
|
||||
zo.Proxy = a.loader.proxy
|
||||
zo.TransferTo = a.loader.transferTo
|
||||
|
||||
a.Zones.Add(zo, origin)
|
||||
|
||||
Reference in New Issue
Block a user