Allow domain overrides for challenge delegation #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This enables delegation of a challenge for a domain (e.g.
my.example.com) to a DuckDNS subdomain (example.duckdns.org) as
described on the LetsEncrypt website. This is useful if your
"main" domain has a difficult DNS API or you'd rather just use
DuckDNS'. Example setup:
my.example.com -> CNAME example.duckdns.org
_acme-challenge.my.example.com -> CNAME example.duckdns.org
DNS challenges will be performed on example.duckdns.org, while the
actual certificate will be issued for my.example.com.
From LE:
I'm writing up an equivalent commit for caddy-dns/duckdns, too. I've gotten this working on my own home network pretty easily, and figured I'd share the change since it's (IMO) super useful and often much easier to delegate the DNS work to DuckDNS instead of messing with most other providers. At least for home networks, where DuckDNS is mostly used.
Without this change, the domain isn't overridden, and Caddy attempts to ask DuckDNS to update DNS entries for the "main" domain (in the example above, that's my.example.com). DuckDNS has no idea what to do with that, and returns an error.