Caddy porkbun dns challenge error "Invalid domain"

Hello I want to share one error I keep having with caddy and porkbun, if you find yourself with the next error “Invalid domain” it can be because an error with CNAME records. I solve it by changing my CNAME record into an A record.

Example log:

ERROR	tls.obtain	could not get certificate from issuer	
{"identifier": "DOMAIN", 
"issuer": "", 
"error": "[DOMAIN] solving challenges: presenting for challenge: adding temporary record for zone \"DOMAIN.\": Invalid http response status, {\"status\":\"ERROR\",\"message\":\"Invalid domain.\"} (order= (ca="}

Founded information in this post of traefik:

Have a great day!

Please fill out the help topic template as per the forum rules.

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