Skip to content

Status and checks

Every domain has one state. The dashboard, leaf domains show and the API use the same names.

StateDashboardMeaningWhat to do
waiting-dnsWaiting for DNSOne 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-certificateGetting certificateThe records are right. LeafCloud is getting the certificate.Wait. LeafCloud keeps trying on its own.
liveLiveThe domain serves HTTPS with a valid certificate.Nothing.
certificate-failedCertificate failedThe 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-changedDNS changedA 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:

TerminalTerminal windowbash
leaf domains add shop.example.com --project portfolio --wait
leaf domains check shop.example.com --wait

A 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:

TerminalTerminal windowbash
leaf domains add shop.example.com --project portfolio
# create the records that `leaf domains show shop.example.com` prints
leaf domains check shop.example.com --wait

On a timeout, leaf domains show says what is still missing.

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.

Choose Re-check DNS in the dashboard, or run:

TerminalTerminal windowbash
leaf domains check shop.example.com

A 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.

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 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.