Errors

custom_domain_dns_mismatch

422: Records not set as needed.

Records not set as needed. Answered with 422.

What it means

One or both of the Custom Domain's CNAME records are missing or point elsewhere: the hostname itself has to point at the Identity's own Tunnel hostname, exactly, and _acme-challenge.<hostname> at this domain's <token>.acme.<tunnel domain>. The refusal names what the resolver found at each. On a pending domain nothing changes; on a domain past pending_dns the same check is the daily re-verification, and a failure there starts the seven-day grace before suspension.

What to do

Set both records exactly as GET /api/identities/{handle}/custom-domains/{hostname} names them, in your own zone, and verify again once they have propagated.

The body

{
  "type": "https://tigby.eu/problems/custom_domain_dns_mismatch",
  "title": "Records not set as needed",
  "status": 422,
  "detail": "…what was refused, naming this request's own values",
  "code": "custom_domain_dns_mismatch",
  "doc_url": "https://docs.tigby.eu/errors/custom_domain_dns_mismatch",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.