diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddytls/acmeissuer.go | 1 | ||||
-rw-r--r-- | modules/caddytls/automation.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/caddytls/acmeissuer.go b/modules/caddytls/acmeissuer.go index 963143b..0797435 100644 --- a/modules/caddytls/acmeissuer.go +++ b/modules/caddytls/acmeissuer.go @@ -112,6 +112,7 @@ func (iss *ACMEIssuer) Provision(ctx caddy.Context) error { DNSProvider: val.(certmagic.ACMEDNSProvider), TTL: time.Duration(iss.Challenges.DNS.TTL), PropagationTimeout: time.Duration(iss.Challenges.DNS.PropagationTimeout), + Resolvers: iss.Challenges.DNS.Resolvers, } } } diff --git a/modules/caddytls/automation.go b/modules/caddytls/automation.go index 502a631..1612391 100644 --- a/modules/caddytls/automation.go +++ b/modules/caddytls/automation.go @@ -295,6 +295,10 @@ type DNSChallengeConfig struct { // How long to wait for DNS record to propagate. PropagationTimeout caddy.Duration `json:"propagation_timeout,omitempty"` + // Custom DNS resolvers to prefer over system/built-in defaults. + // Often necessary to configure when using split-horizon DNS. + Resolvers []string `json:"resolvers,omitempty"` + solver acmez.Solver } |