diff --git a/challenge/dns01/nameserver.go b/challenge/dns01/nameserver.go index c1682b4d0d..51c2b6f778 100644 --- a/challenge/dns01/nameserver.go +++ b/challenge/dns01/nameserver.go @@ -178,6 +178,13 @@ func fetchSoaByFqdn(fqdn string, nameservers []string) (*soaCacheEntry, error) { domain := fqdn[index:] in, err = dnsQuery(domain, dns.TypeSOA, nameservers, true) + + retry := 3 + for err != nil && retry > 0 { + in, err = dnsQuery(domain, dns.TypeSOA, nameservers, true) + retry-- + } + if err != nil { continue }