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.
I ran this command: sudo certbot certonly --standalone -d $DOMAIN --preferred-challenges http --agree-tos -n -m $ALERTS_EMAIL --keep-until-expiring
It produced this output: An unexpected error occurred:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='acme-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7eff08bb30a0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
My web server is (include version):
The operating system my web server runs on is (include version):
If you need additional context: it could be that your /etc/resolv.conf is misconfigured or the nameserver configured there is unreachable. In case you use Docker—it also needs additional care with regards to DNS configuration, but my expertise with Docker is very limited.