I ran this command: certbot certonly --nginx -d panel.boiihosting.fun
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for panel.boiihosting.fun
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: panel.boiihosting.fun
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for panel.boiihosting.fun - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for panel.boiihosting.fun - 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 https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version):
The operating system my web server runs on is (include version): Ubuntu 24.04 Noble
My hosting provider, if applicable, is: RudraCloud
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): 2.9.0
I'm not sure what the topic title has to do with the info you've posted. Yes, you can get a second cert for the same set of domains, but be aware of the rate limits; you can't create more than five identical certificates within seven days.
But that has nothing at all to do with the error you're seeing; that error says you don't have a valid DNS record for your domain. You'll need that in order to get a cert.
How to generate a new certificate for the same set of domains? My subdomains are correctly pointed to the IP address of server but still I am getting these errors.
Yes, the domain is registered. I had generated its SSL certificate with Certbot but I reset my VPS and I don't have the privkey.pem so I am not able to obtain that certificate again for my subdomains.
As shown in the post right above yours, no, it isn't (at least not actively so)--it's suspended. Did you pay the registration/renewal fee?
There are no DNS records, at all, for this domain--not even NS records. Until you fix that, you won't be able to do anything with it; getting a cert should be among the lesser of your concerns right now.
Sorry for confusion, My domain was suspended and I have renewed it. But how can I solve this error with certbot to obtain SSL certificate for the subdomain(s)?
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for panel.boiihosting.fun
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: panel.boiihosting.fun
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for panel.boiihosting.fun - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for panel.boiihosting.fun - 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 https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[This is the error I am facing while obtaining SSL certificate for my domain with certbot because it is already registered and I don't have its privkey.pem, I had to reset my VPS.]