Report this

What is the reason for this report?

cetbot DNS A/AAAA record error

Posted on April 10, 2021

So I followed this tutorial(https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx.html) to install certbot and then I followed the instructions here(https://gist.github.com/belst/ff36c5f3883f7bf9b06c379d0a7bed9e) to make my certificate.

The command I used was:

sudo certbot certonly --webroot -w /var/www/letsencrypt -d your-domain.tld -d www.your-domain.tld

I changed www.your-domain.tld to be my domain. I ended up getting an error that said,

 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.

However, I checked to make sure that my domain name was entered correctly (mydomain.com and www.mydomain.com), and I have both DNS A and AAAA records set up for my domain. I have checked that my IP address of my droplet is correctly specified in these records. I’m not exactly sure what it is that is going wrong. Any help would be much appreciated. Thank you.

If you need anymore information please let me know.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It looks like you have followed the right steps. To ensure that the DNS A/AAAA records are propagated correctly, you can use a DNS propagation tool like What’s My DNS to check the current status of your domain’s DNS record propagation.

If the DNS records are propagated correctly and you’re still encountering the error, make sure that:

  • Your domain is pointing to the correct Droplet IP address.
  • The Nginx configuration has the correct webroot path and the server_name directive is set to your domain name.
  • Nginx server has been reloaded or restarted after making any changes to the configuration.

If you have checked everything and still face the issue, you can check Certbot’s log file /var/log/letsencrypt/letsencrypt.log for detailed information about the error.

For more information on using Let’s Encrypt with Nginx on DigitalOcean, please refer to our tutorial: How To Secure Nginx with Let’s Encrypt on Ubuntu 20.04.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.