# DNS Challenge Time Limit Exceeded

**URL:** <https://community.letsencrypt.org/t/dns-challenge-time-limit-exceeded/118871>\
**Category:** Help\
**Created:** [April 8, 2020, 11:18pm UTC](https://community.letsencrypt.org/t/dns-challenge-time-limit-exceeded/118871 "2020-04-08T23:18:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdemi](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/cdemi/32/38738_2.png) [@cdemi](https://community.letsencrypt.org/u/cdemi)\
**Post date:** [April 8, 2020, 11:18pm UTC](https://community.letsencrypt.org/t/dns-challenge-time-limit-exceeded/118871/1 "2020-04-08T23:18:40Z")

</div>

Hi,

I am using Traefik with Let’s Encrypy DNS Challenge using Cloudflare as a Provider. I have had this work countless times, however for some strange reason, I can’t get this domain to work.

Domain: `duplicati.cyclops.99bits.net`

While the challenge is happening, I can see the TXT Record added in my Cloudflare account, furthermore if I verify the TXT Record on various resolvers, they report it correctly:

 ![image](https://global.discourse-cdn.com/letsencrypt/original/3X/e/f/efc4c1c74a0121b3eede7abe73d7223f3ef5c2f3.png)

However it doesn’t look like the ACME server is seeing this key, since I get this error message:  
`time="2020-04-08T23:13:05Z" level=error msg="Unable to obtain ACME certificate for domains \"duplicati.cyclops.99bits.net\": unable to generate a certificate for the domains [duplicati.cyclops.99bits.net]: acme: Error -> One or more domains had a problem:\n[duplicati.cyclops.99bits.net] time limit exceeded: last error: NS hank.ns.cloudflare.com. did not return the expected TXT record [fqdn: cyclops.99bits.net., value: Tsh73GU7FVvBSqHcjiJcCB9EXBPXzRLL9xzbtXTB-u8]: v=spf1 include:spf.mailjet.com ?all\n" providerName=le.acme routerName=duplicati@docker rule="Host('duplicati.cyclops.99bits.net')"`

After I get the error, the record disappears from Cloudflare DNS server, but I assume this is the expected behaviour of the certificate bot

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [April 8, 2020, 11:49pm UTC](https://community.letsencrypt.org/t/dns-challenge-time-limit-exceeded/118871/2 "2020-04-08T23:49:05Z")

</div>

This is a preflight check performed by Traefik’s ACME library, lego. It’s not an error from the Let’s Encrypt CA.

The problem here appears to be that the preflight query is seeing the TXT records for `cyclops.99bits.net`, rather than for `_acme-challenge.duplicati.cyclops.99bits.net`.

I think it is happening because you’ve put a wildcard CNAME in your zone:

```
$ dig +noall +answer _acme-challenge.cyclops.99bits.net txt
_acme-challenge.cyclops.99bits.net. 599 IN CNAME cyclops.99bits.net.
cyclops.99bits.net. 599 IN CNAME unifi.99bits.net.
unifi.99bits.net. 599 IN TXT "v=spf1 include:spf.mailjet.com ?all"

```

The wildcard CNAME might be clobbering the record being created on the `_acme-challenge` label, which is why you end up seeing the SPF record in the error instead.

Wildcard CNAMEs are pretty much always a mistake and lead to weird problems like these.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [May 8, 2020, 11:49pm UTC](https://community.letsencrypt.org/t/dns-challenge-time-limit-exceeded/118871/3 "2020-05-08T23:49:11Z")

</div>

Closed on May 8, 2020, 11:49pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
