Open 0xjams opened 2 years ago
I'm seeing something similar. The DNS challenge was working in January but is now failing. My error looks more like this though:
solving challenges: presenting for challenge: adding temporary record for zone subdomain.example.com.: namecheap api returned error in response. Err: Error0: Domain name not found
It seems to be related to the subdomain. When I run the integration tests using my credentials with the domain
parameter set to the domain apex then it works. But when I change domain
to include a subdomain, it starts failing with the "Domain name not found" error.
I guess something in the Namecheap API has changed recently, but the change log doesn't show anything after 2018.
@justinfenn thank you for posting that info about the subdomain. That does sound like it could be the issue here. Probably will need to update handling of zone when it contains a subdomain and do some translation into the format that the namecheap API wants. It does seem like something changed with how the namecheap API handles subdomains earlier this year though since this library hasn't been changed in that time.
Could it be related to https://github.com/libdns/libdns/commit/348effc20d6babf7853b4a4b1917b53f151de620 upstream?
OS: Ubuntu 20.04.3 LTS Caddy Version: 2.4.6
Dockerfile:
Caddyfile header
The staging and production urls were tested yielding the same results
{
email xxxx@xxx.xx
acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}
Caddyfile (important part):
Error that can be seen in docker logs:
I verified that my Namecheap credentials were right, in fact two weeks ago this configuration was working perfectly with another subdomain, I started having this issue today.
Any ideas?