Problems getting certificate for two DNS

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., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:,

I ran this command: sudo certbot --nginx

It produced this output: Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Requesting a certificate for and 3 more domains

Certbot failed to authenticate some domains (authenticator: nginx). 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; DNS problem: NXDOMAIN looking up AAAA for - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx 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.

My web server is (include version): nginx/1.18.0 (Ubuntu)

The operating system my web server runs on is (include version): Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

My hosting provider, if applicable, is: aws ec2

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 2.9.0

I can create a certificate for But when I tried to create it for all 4 URLS, the command failed as shown above. After trying all 4, I tried again asking only for the two associated with That succeeded. But now I'm set up to work with only half my urls, and is more important than

So I have two questions. Why does it succeed for and fail for What is the best way to add assuming I can get it to work.

I called up network solutions to ask if I had filled in the A record for correctly and they assured me that I had.

this works

this doesn't.

www. is a different domain, you should add an A and/or AAAA record as desired.


Thank you so much. The problem was a typo. I meant to write but wrote, leaving out the W.

You caught the problem and my brilliant wife caught the problem, but I totally missed it. So I corrected the typo, then ran the command again, and now it works. I'm happy!

Thank you so much for your help.