From 52eceeb8d26017e43d6abb699ead96ef24d7e84f Mon Sep 17 00:00:00 2001 From: Sugi Date: Thu, 28 Feb 2019 16:19:42 +0900 Subject: [PATCH] OracleCloud: ttl config and timeout (#812) --- providers/dns/oraclecloud/oraclecloud.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/providers/dns/oraclecloud/oraclecloud.go b/providers/dns/oraclecloud/oraclecloud.go index 9edac395..eee59720 100644 --- a/providers/dns/oraclecloud/oraclecloud.go +++ b/providers/dns/oraclecloud/oraclecloud.go @@ -90,7 +90,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error { Domain: common.String(dns01.UnFqdn(fqdn)), Rdata: common.String(value), Rtype: common.String("TXT"), - Ttl: common.Int(30), + Ttl: common.Int(d.config.TTL), IsProtected: common.Bool(false), } @@ -167,3 +167,9 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error { return nil } + +// Timeout returns the timeout and interval to use when checking for DNS propagation. +// Adjusting here to cope with spikes in propagation times. +func (d *DNSProvider) Timeout() (timeout, interval time.Duration) { + return d.config.PropagationTimeout, d.config.PollingInterval +}