Challenge failed for domain

Hi - my first time to deploying a laravel 8 project to AWS EC2 Ubuntu 20.04:

My domain is:

I ran this command:
sudo certbot

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

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
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for
Waiting for verification...
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.


  • The following errors were reported by the server:

    Type: dns
    Detail: DNS problem: NXDOMAIN looking up A for - check that a DNS record exists for this

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

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

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

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

You do not have any DNS records for that domain name. Once you create those, you can try this to check it

And this to evaluate your http site to see if a certificate could be issued

Thank you for your reply. This is my first deployment on AWS (new to the setting up) so please bear with me.

Here is my DNS records:


I used this link :

and got this:
NoRecords FATAL No valid A or AAAA records could be ultimately resolved for This means that Let's Encrypt would not be able to to connect to your domain to perform HTTP validation, since it would not know where to connect to. No A or AAAA records found.

Those look like DNS records but they do not seem to be used. Check where you registered your domain name and ensure the Name Servers are correct. If you need an intro, I saw this on google after a quick search:

If Lets Debug cannot see your site, you will not be able to issue a cert. You must have a working http site to create a cert using the http challenge.


Thank you. I will reply here when i have figured this out.

1 Like

You should leave that line blank - just hit ENTER.


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