When I use Caddy as an HTTP server in DNS challenge mode, it cannot get certificate of my domain hosted by CloudXNS.
It seems that there is something wrong with record name generated by Lego.
The host record is set to _acme-challenge.example.com.
But CloudXNS will resolve it to _acme-challenge.example.com.example.com.
According to the document of CloudXNS (Chinese version only, sad...), the key hostSHOULD NOT contain the domain again.
For example _acme-challenge means _acme-challenge.example.com and _acme-challenge.foo means _acme-challenge.foo.example.com.
When I use Caddy as an HTTP server in DNS challenge mode, it cannot get certificate of my domain hosted by CloudXNS.
It seems that there is something wrong with record name generated by Lego. The host record is set to
_acme-challenge.example.com
.But CloudXNS will resolve it to
_acme-challenge.example.com.example.com
.According to the document of CloudXNS (Chinese version only, sad...), the key
host
SHOULD NOT contain the domain again. For example_acme-challenge
means_acme-challenge.example.com
and_acme-challenge.foo
means_acme-challenge.foo.example.com
.Since I don't know GO, I cannot bring a PR. But I think the problem is here: https://github.com/xenolf/lego/blob/master/providers/dns/cloudxns/cloudxns.go#L139
Hoping you can fix it. Thanks a lot.