tls: Add internal module to serve DNS for DNS-01#7675
Conversation
5762285 to
5bf25e2
Compare
|
Thanks for testing the NS-delegation path. I agree this proves the approach can work technically but I still think this is a much larger scope decision than simply built-in DNS-01 support. This effectively makes Caddy an authoritative DNS server for delegated A few concrete things stood out from your changes:
So my concern is not that the idea is impossible. It is that embedding even a small authoritative DNS server in core has a much larger maintenance and correctness surface than the current caddy-dns/acme-dns model. I would still lean toward this living as a separate plugin/module unless there is a legitimate decision with more thorough reasoning that Caddy core should own this DNS-serving surface. |
For #7663
This adds an internal DNS resolver so you can do DNS-01 by pointing your
_acme-challengesubdomains at caddy itself.How to use:
my-acme-challenge.example.com) pointing to caddy, plusNSrecords for all_acme-challenge.subdomains you'll need (i.e. for*.MYDOMAINdo_acme-challenge.MYDOMAIN) pointing to the A record (my-acme-challenge.example.com).mnameandrnameare required for the synthetic SOA records required due to the NS zone cut.This may still be rough, but I was (I think) careful in my reading of the interface specifications and relevant RFCs. I've tested it with LE (staging) and ZeroSSL and both worked great.
Assistance Disclosure
It's a combination of Gemini code and my own, and I reviewed the generated parts + tested everything.