Status and checks
Every domain has one state. The dashboard, leaf domains show and the API use the same names.
| State | Dashboard | Meaning | What to do |
|---|---|---|---|
waiting-dns | Waiting for DNS | One or more records are missing or wrong. The check shows which one. | Add or fix the record, then choose Re-check DNS. Checks also run on their own. |
getting-certificate | Getting certificate | The records are right. LeafCloud is getting the certificate. | Wait. LeafCloud keeps trying on its own. |
live | Live | The domain serves HTTPS with a valid certificate. | Nothing. |
certificate-failed | Certificate failed | The records are right, but the certificate could not be issued. The reason is shown. | Read the reason, fix the cause, then re-check. Troubleshooting lists the common causes. |
dns-changed | DNS changed | A domain that was live now has a record that points somewhere else. | Put back the record the warning shows. Your sites keep serving meanwhile. |
Read leaf domains show <domain> for the exact check that fails. Each check is named ownership (the TXT record), acme (the _acme-challenge record) or routing (the record that sends visitors to LeafCloud).
Use --wait to keep the CLI running until the domain is live, or until it fails:
leaf domains add shop.example.com --project portfolio --waitleaf domains check shop.example.com --waitA failed wait tells you which state stopped it: a certificate that failed, or DNS that changed. The command exits with an error in that case.
Use --wait on add only when the records already exist, which is rare on a first add. Right after add, the records are not there yet, so the wait polls for up to 5 minutes and then exits with status 5. The domain keeps going in the background. The better sequence is: add the domain, create the records it prints, then run check --wait:
leaf domains add shop.example.com --project portfolio# create the records that `leaf domains show shop.example.com` printsleaf domains check shop.example.com --waitOn a timeout, leaf domains show says what is still missing.
Waiting for DNS
Section titled “Waiting for DNS”Until the records are right, LeafCloud checks them again on a schedule. The first retry is one minute after a failed check. Each retry waits longer than the last, up to one hour.
Each check asks the domain’s own name servers first, so a cached answer from a public resolver is not used when those name servers can be reached.
Re-check DNS
Section titled “Re-check DNS”Choose Re-check DNS in the dashboard, or run:
leaf domains check shop.example.comA check runs at most once every 10 seconds for each domain. If you check again sooner, the CLI waits and then checks once more. The API answers 429 rate_limited with a Retry-After header, in seconds. The CLI and the MCP tools handle the wait for you.
Live domains
Section titled “Live domains”Once a domain is live, LeafCloud checks its records about once an hour: an hour after the previous check, plus up to five minutes at random, so that checks do not all run together.
When a real answer shows that a record has changed, the domain moves to DNS changed. The warning names the record to put back. The domain stays active, its projects keep serving, and nothing is unpublished. The warning clears on its own once the records are right again.
A missing _acme-challenge record on a live domain is reported the same way. Add it back before the certificate has to renew.
LeafCloud emails the account owner once for each incident. If a live domain’s records change, you get one email. You get another only after the warning has cleared and a new change appears.
Certificates
Section titled “Certificates”Certificates come from Let’s Encrypt. LeafCloud renews them automatically before they expire. A failed renewal keeps the current certificate in use until it expires, and the failure is shown on the domain until a renewal works.
Keep the _acme-challenge record in place for as long as the domain is used. Renewals check it every time. See Records to add.
Related
Section titled “Related”- Troubleshooting
- Custom domains for AI agents: the same states, and what each one means for an agent to do next.