Implement external lookups for CNAMEs

This commit is contained in:
Miek Gieben
2016-11-10 07:48:47 +00:00
parent 0919216d3c
commit d383f279a0
7 changed files with 39 additions and 16 deletions

View File

@@ -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
}

View File

@@ -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)

View File

@@ -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)