I ran this command: sudo certbot certonly --apache -v
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: phpipam.diamondstatenetworks.com
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Certificate is due for renewal, auto-renewing...
Renewing an existing certificate for phpipam.diamondstatenetworks.com
Performing the following challenges:
http-01 challenge for phpipam.diamondstatenetworks.com
Waiting for verification...
Challenge failed for domain phpipam.diamondstatenetworks.com
http-01 challenge for phpipam.diamondstatenetworks.com
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: phpipam.diamondstatenetworks.com
Type: dns
Detail: no valid A records found for phpipam.diamondstatenetworks.com; no valid AAAA records found for phpipam.diamondstatenetworks.com
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Cleaning up challenges
Some challenges have failed.
My web server is (include version): Apache/2.4.29 (Ubuntu)
The operating system my web server runs on is (include version): 18.04.1-Ubuntu
My hosting provider, if applicable, is: Azure
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): certbot 1.32.2
I also checked the domain with DNS. It has an A record.
Thanks!