go-acme / lego

Let's Encrypt/ACME client and library written in Go
https://go-acme.github.io/lego/
MIT License
7.87k stars 1.01k forks source link

autodns: fixes wrong zone in api call if CNAME is used #1923

Closed leonexcc closed 1 year ago

leonexcc commented 1 year ago

This fixes the problem that lego doesn't use the resolved FQDN from the CNAME in the API calls to AutoDNS.

Tested with CNAME, without CNAME on subdomans and root domains.