No valid IP address found for domain when trying to get SSL certificate?

Posted August 30, 2020 14.7k views
NginxUbuntuSecurityUbuntu 20.04

As I was following the tutorial found here: [](http://) in order to get my SSL certificate.
On step 4 I am asked to run the following command sudo certbot --nginx -d -d with my domains which are working, I keep getting the following error: No valid IP addresses found for (my domain). I waited the 48 hours as instructed by Google domains after changing name servers and keep getting the same issue.

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


Is it really domain ? I tried few whois lookup web sites and got the same result - domain has not got an owner. In such case, there is no chance to get a certificate for it.
But, if you put just as an example of your domain, then find out what says when you enter your actual domain there.

  • Sorry, the domain is

    • Hi @ahsam,

      As mentioned in the Prerequisites section of the tutorial How To Secure Nginx with Let’s Encrypt on Ubuntu 20.04, you must create two DNS records for your domain

      • An A record with pointing to your server’s public IP address.
      • An A record with pointing to your server’s public IP address.

      I see that you have only created an A record with but not You must create another A record with as well. This document has detailed information to help you. Note: because is an apex domain, enter the @ symbol in the HOSTNAME field.

      After that, run this command to obtain your SSL certificate: sudo certbot --nginx -d -d

      by Brian Boucheron
      Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps. In this tutorial, you will use Certbot to obtain a free SSL certificate for Nginx on Ubuntu 20.04, and set up your certificate to renew automatically.