checkallsslcerts Let's Encrypt error if zone doesn't exist for hostname
When cPanel automatically attempts to issue a free Let’s Encrypt SSL certificate for the server hostname, it may throw the following error:
(_acme-challenge.www.server.hawkhost.com): [FAIL:missing zone] at /usr/local/cpanel/Cpanel/DnsUtils/Batch.pm line 258.This error occurs when you use an external DNS provider (such as Cloudflare) and do not have the DNS zone hosted locally on the server. The error will appear even if you have valid A records pointing your hostname to your server.
Workaround
Section titled “Workaround”In WHM, navigate to Add an A Entry for Your Hostname and add the entry. This allows cPanel/WHM to proceed with the HTTP DCV method to issue the certificate.
This issue is tracked by cPanel as bug CPANEL-44222. Until a fix is released, the above workaround is the recommended solution.