Giving every project its own address on rzero.in
This is a case study of one real setup. The domain is rzero.in. It gives every project of the account its own address, such as <project>.rzero.in, and each project also keeps its <project>.leafcloud.app address. The domain was moved between DNS providers while it was being set up, which is the part worth reading.
Why a project-addresses domain
Section titled “Why a project-addresses domain”The account has several projects. With one domain that gives every project an address, a new project gets its address at its first deploy, with no domain to add.
So the domain was added as a project-addresses domain, with every project included automatically:
leaf domains add rzero.in --project-addresses --all-projectsWith --all-projects, a project gets its address at its first deploy. The command printed the records to create: a TXT record for ownership, a wildcard CNAME (*.rzero.in) for every project address, and an _acme-challenge CNAME for the wildcard certificate. Records to add lists them.
The name servers moved
Section titled “The name servers moved”Partway through, the domain’s DNS moved from one provider to another. The name servers at the registrar changed, and the records were added at the new provider.
The check kept failing after the change. It kept finding the old name servers, and the records at the new provider were not seen. The records were right. The check was reading an old copy of the domain’s name servers.
LeafCloud fixed the check to ask the parent zone (the top-level server that delegates the domain) for the domain’s current name servers, and then to ask those name servers directly. After that change the check found the new name servers, and the records passed.
The lesson for you: when you move DNS between providers, change the name servers at the registrar, then choose Re-check DNS. If the check still reports the old answer, run leaf domains check rzero.in again after a few minutes. See Troubleshooting.
Timeline
Section titled “Timeline”Times are IST, from the real setup on 2026-11-02:
- 13:09:
rzero.inadded as a project-addresses domain with--all-projects. - 13:11: records created at the DNS provider.
- 13:13: the domain verified.
- 13:15: the wildcard certificate issued. It is valid for 90 days and renews automatically.
- About 13:20:
www.rzero.inadded to the rzero project as its own custom domain. - 13:29:
www.rzero.inverified. - 13:30: its certificate issued.
For the name server move:
- The public internet saw the new name servers within about 25 minutes.
- Before the check was fixed to ask the parent zone, the domain could not verify. A resolver kept the old name servers, because their record had a 24-hour TTL, so the check kept reading the old answer until the cache expired.
Turning one project off
Section titled “Turning one project off”One project was switched off on the domain. Its address on the domain then returned 404, while its <project>.leafcloud.app address kept working.
In the dashboard, the switch for that project’s address on the domain was turned off. With the CLI:
leaf domains projects rzero.in --exclude <project>Switching it back on publishes the project’s current deploy on the domain again.
The root address
Section titled “The root address”The bare domain, rzero.in, was given a root address, so visitors who type the bare domain reach one project. The root is a separate setting from the project addresses:
leaf domains root rzero.in --serve <project>The project must have an address on the domain, and it must have a live deploy. The bare domain needs a flattening record at the DNS provider, because a CNAME is not allowed at the top of a zone. See DNS providers.
To send the bare domain to another address instead, use --redirect:
leaf domains root rzero.in --redirect https://www.example.comWhat to remember
Section titled “What to remember”- A project-addresses domain covers every project in the account when you use
--all-projects, including projects that you deploy later. - Each project’s address can be switched off without affecting its
leafcloud.appaddress. - After a DNS move, change the name servers first, then re-check.
- The bare domain is a separate address with its own setting, and it needs flattening at the DNS provider.
Related: Project addresses, Status and checks, Limits.