Get this error when trying to generate certs. on raspberry pi

My domain is:

I ran this command:
sudo certbot --nginx

It produced this output:

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

  Type:   unauthorized
  Detail: Invalid response from [2a02:4780:8:409:0:18fd:808f:7]: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>openresty</cente"

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.

My web server is (include version):

The operating system my web server runs on is (include version):
Raspberry os lite (debian)

My hosting provider, if applicable, is:
Not applicable

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:

The version of my client is:
certbot 1.22.0

Full log file

Your DNS zone doesn't have the www subdomain specified. Only the apex domain has an A record.


Also, your DNS for has one A and one AAAA record but the servers respond differently so probably one of them is not correct. See

Let's Encrypt will prefer the IPv6 IP when present


Thanks for helping everyone. MultipleIPAddressDiscrepancy was the issue :ok_hand:

1 Like

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