DNS verification failing even when dns updates take place

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: xpcreations.net

I ran this command:

certbot certonly --test-cert --dns-rfc2136 --dns-rfc2136-credentials ~/.config/certbot/secrets.ini -d xpcreations.net -d '*.xpcreations.net'

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator dns-rfc2136, Installer None
Starting new HTTPS connection (1): acme-staging-v02.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for xpcreations.net
dns-01 challenge for xpcreations.net
Waiting 60 seconds for DNS changes to propagate
Waiting for verification...
Challenge failed for domain xpcreations.net
Challenge failed for domain xpcreations.net
dns-01 challenge for xpcreations.net
dns-01 challenge for xpcreations.net
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: xpcreations.net
   Type:   unauthorized
   Detail: No TXT record found at _acme-challenge.xpcreations.net

   Domain: xpcreations.net
   Type:   unauthorized
   Detail: No TXT record found at _acme-challenge.xpcreations.net

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

My web server is (include version): nginx-1.16.1-1.el7.x86_64

The operating system my web server runs on is (include version): CentOS Linux release 7.7.1908 (Core)

My hosting provider, if applicable, is: Google Cloud

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.39.0

As an additional note, this worked after 2 or 3 tries. This isn’t reliable. Please, help me debug this.

Also, here’s the DNS’s log:

client @0x7fb3f6f344b0 107.178.221.178#38908/key certbot-key: updating zone 'xpcreations.net/IN': adding an RR at '_acme-challenge.xpcreations.net' TXT "0YL7jPqdub5sbyS998zlnVhFryYg6Hifz_MpRud8tNs"
zone xpcreations.net/IN: sending notifies (serial 2015090808)
client @0x7fb3f40b7690 107.178.221.178#38910/key certbot-key: updating zone 'xpcreations.net/IN': adding an RR at '_acme-challenge.xpcreations.net' TXT "QyY2_b0QA8-T0Ce6HAVEfWNKFpKWoqSln1D8yN1Y408"
zone xpcreations.net/IN: sending notifies (serial 2015090809)
client @0x7fb3f6f8be70 107.178.221.178#38980/key certbot-key: updating zone 'xpcreations.net/IN': deleting an RR at _acme-challenge.xpcreations.net TXT
zone xpcreations.net/IN: sending notifies (serial 2015090810)
client @0x7fb3f6f7d840 107.178.221.178#38982/key certbot-key: updating zone 'xpcreations.net/IN': deleting an RR at _acme-challenge.xpcreations.net TXT

The key is working and all. I think this is a matter of DNS resolution on the remote part.

1 Like

Does the DNS server log zone transfers? Is the secondary nameserver(s) actually receiving the updates in time? How quickly is this all happening?

Are you validating more than once every 60 seconds?

1 Like

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