CertCLM logoCertCLM

_acme-challenge delegation

DNS-01 without giving CertCLM write access to your main zone.

Organizations often can't grant API write access to the primary DNS zone — change control, shared registrar accounts, or split teams. _acme-challenge delegation gives CertCLM DNS-01 capability while the main zone stays read-only.

How it works

ACME follows CNAMEs on the _acme-challenge prefix. Point the challenge at a zone you do control, and CertCLM's DNS credential only ever touches that zone:

_acme-challenge.example.com.  300  IN  CNAME  acme.example.com.validate.acme-dns.example.net.

CertCLM writes the TXT under acme-dns.example.net (could be a dedicated zone on the same provider, or a self-hosted BIND + RFC2136). The validation chain for example.com — and *.example.com — passes while your production zone is untouched. lego follows the CNAME by default; set LEGO_DISABLE_CNAME_SUPPORT=true only if you explicitly want to disable this behaviour.

Two delegation patterns

One record per domain, minimal setup, points anywhere:

_acme-challenge.www.example.ru.   IN CNAME  www.example.ru.acme.internal-dns.ru.
_acme-challenge.example.ru.       IN CNAME  example.ru.acme.internal-dns.ru.

For a wildcard you delegate both _acme-challenge.example.ru and _acme-challenge.*.example.ru is not required — the wildcard shares the apex _acme-challenge name.

NS delegation

Delegate the whole _acme-challenge subtree to a dedicated nameserver (typically a small BIND instance running RFC2136 dynamic updates):

_acme-challenge.example.ru.  IN  NS  acme-dns.internal.ru.

Then create an rfc2136 credential in CertCLM pointed at that server. All current and future hostnames in the zone validate with zero per-domain DNS edits.

In CertCLM

  1. Create the delegation record(s) in your main zone (one-time, read-only afterwards).
  2. Add a DNS credential for the delegated zone's provider (reg.ru API, RFC2136 TSIG key, etc.) — see DNS providers.
  3. Issue with DNS-01 as usual. The TXT lands in the delegated zone; nothing else about issuance changes.