DNS Problem NXDOMAIN looking up A for www.sreenivasan.me

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. crt.sh | 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:

I ran this command:
sudo certbot --nginx

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: www.sreeenivasan.me
2: sreenivasan.me
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 2,1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.sreeenivasan.me
Waiting for verification...
Challenge failed for domain www.sreeenivasan.me
http-01 challenge for www.sreeenivasan.me
Cleaning up challenges
Some challenges have failed.

 - The following errors were reported by the server:

   Domain: www.sreeenivasan.me
   Type:   dns
   Detail: DNS problem: NXDOMAIN looking up A for www.sreeenivasan.me
   - check that a DNS record exists for this domain; DNS problem:
   NXDOMAIN looking up AAAA for www.sreeenivasan.me - check that a DNS
   record exists for this domain

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

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):
GCP Compute UI

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

Detail: DNS problem: NXDOMAIN looking up A for www.sreeenivasan.me

I think your nginx config might have a typo. Check the number of 'e' characters in the www name.



Thank you u/rmbolger!!! It hurts that much more when the error is a misspelling of your own name :man_facepalming:t5:


  • Congratulations! Your certificate and chain have been saved at:

    Your cert will expire on 2022-06-27. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot again
    with the "certonly" option. To non-interactively renew all of
    your certificates, run "certbot renew"

Made the correction, restarted nginx, and was successful :grinning:


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