Problem in Apache with Let's Encrypt on Ubuntu

Posted August 15, 2021 169 views
ApacheLet's Encrypt

root@test-live:/etc/apache2/conf-available# certbot –apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter ‘c’ to cancel): 1,2
Requesting a certificate for and

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

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.

Submit an Answer
1 answer


The error that you are getting indicates that you do not have a DNS record for the www version of that specific domain.

You could do one of the following:

  • If you do not use the www version, you could issue an SSL for the non-www version only

  • If you need the www version, then you need to add a CNAME record for your www version to point to your domain: