Let's Encrypt Wildcard Renew failing on DNS challenge

SYSTEM INFORMATION
OS type and version Debian Linux 13
Virtualmin version 8.3.0 Professional

When attempting to renew a Wildcard cert for a domain, I am getting the error below. DNS is hosted with Namecheap - I can modify, add, delete, etc. other records for this domain without issue from within Virtualmin, so the API seems to be working. What would be blocking the TXT record specifically from being created, or is there another potential issue I am missing?

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Renewing an existing certificate for aiskon.net and *.aiskon.net

Certbot failed to authenticate some domains (authenticator: manual). The Certificate Authority reported these problems:
  Domain: aiskon.net
  Type:   dns
  Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.aiskon.net - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to verify the DNS TXT records created by the --manual-auth-hook. Ensure that this hook is functioning correctly and that it waits a sufficient duration of time for DNS propagation. Refer to "certbot --help manual" and the Certbot User Guide.

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.

Attempted a reset of all records to be sure, and got the following:

Resetting DNS for domain ..
.. skipping warning : DNS records will be lost : food (A), truenas (A), truenas (AAAA)
Deleting and re-creating standard DNS records ..
.. failed to update DNS records : Failed to update DNS records : API command failed : Requested value 'UNKNOWN' was not found.
.. done

Hello,

Thanks for the heads-up!

Try applying this patch and giving it another shot:

webmin patch https://github.com/webmin/webmin/commit/7efb03d

Thank you. Patch is applied, but still getting the same error.

What I am noticing is that any time I work with DNS using Namecheap for the root domain only, I am getting the following error:

Resetting DNS for domain ..
Deleting and re-creating standard DNS records ..
.. failed to update DNS records : Failed to update DNS records : API command failed : Requested value 'UNKNOWN' was not found.
.. done

The changes seem to still go through, but not right away.

If I make any edits for the sub-domains, I do not get an error.

… and after banging my head against it for 2 days, it went through.

Not sure if the patch was involved, but it’s now working. Thank you!