Domain Claims
An account holder can add domains to their account, and remove them, without asking you. Before a domain is added, the holder proves control of it; the attempt is a domain claim. A removal is the same staged job as yours. Two settings decide who can do what:
| Setting | Default | What it decides |
|---|---|---|
| Account owners can add and remove their own domains, for the server | on | Off, no holder adds or removes a domain; you still can. |
| Domains, the domain limit of each account | 0 | How many domains the account can hold for its holder to add one more. 0: none, and the holder removes none either. Empty: no limit. |
So on a new server, or one just upgraded, no holder can add or remove a domain until you give their account a limit.
A holder can remove their own domains, after confirming their identity and typing the domain's name, when the switch is on and their account's limit is not 0: a number, even one the account has reached, or no limit. At 0 you add and remove the account's domains, and the holder does neither. Give an account 0 to keep both to yourself for that account, or turn the switch off to keep them for every account.
The switch
Accounts › Domain Claims holds the switch, above the claims, with
the one that lets holders move domains between accounts, which needs this
one on too (Domain moves by account holders). On the
command line, server edit sets it, and prints it with no option:
elpanctl server edit --domain-self-service off
elpanctl server edit --domain-self-service on
In the server API it's
domainSelfServiceEnabled on /api/v1/server.
With the switch off, the holder's Domains page says that the server
administrator adds and removes domains, and has no Add a domain,
Remove or Check now; the account API answers 403
domain-self-service-disabled.
An account at a limit of 0 gets the same, for that account alone: its
Domains page lists its domains with no Add a domain and no
Remove, and says that the server administrator adds and removes them,
and its API's add and remove (the dry run included) answer 403
domain-self-service-disabled. A removal it had already started goes on.
A claim it opened before you lowered the limit to 0 is still checked, and
fails on the limit when a proof holds.
The switch doesn't stop the claims that are already open: the worker goes on checking them, and adds a domain whose proof holds. Cancel them if they shouldn't.
How a holder adds a domain
The account docs walk the holder through it: Add a domain and Remove a domain. In short:
- The holder types the name on their Domains page. The name rules and the limit refuse at once.
- The panel opens a claim with a token of its own and shows two proofs.
- TXT record:
_elpan-verify.<domain>holds the token on every name server of the zone that holds the name. The panel asks each of them directly, never through a resolver; a server that doesn't answer is left out. - Name servers: the parent zone delegates the domain to this
server's name servers and to no others, every server of the parent
agreeing. This server's name servers are the hostnames of its DNS
services,
nameserversinGET /api/v1/server.
- TXT record:
- The holder selects Check now, or waits for the worker. It looks for due claims every 5 minutes, and checks each claim every 5 minutes in its first hour, every 30 minutes until the end of its first day, then every 2 hours. A claim with no proof after 7 days expires.
- When a proof holds, the panel asks the name rules and the limit again, holding a lock on the account's limit, and provisions the domain as Add Domain does. When this happens in the background, the holder is told by mail in their system mailbox, whether the domain was added or not.
A name below one of the account's own domains is added at once, without proof, and counts against the limit.
A domain move from another server opens a claim of
the same kind in the receiving account, asked by transfer:<approval id>.
Its proof makes an inactive copy for the move rather than an active
domain; it lasts seven days, or until the approval ends.
The Domain Claims screen
Accounts › Domain Claims lists every claim on the server, newest first, filtered by state:
| State | What it means |
|---|---|
| Waiting for proof | Open: checked on schedule and by Check now. |
| Verified | A proof held and the domain is being provisioned. A claim left here was interrupted. |
| Added | The domain was added to the account. |
| Failed | A proof held, but the domain couldn't be added. The claim says why. |
| Expired | 7 days went by without proof. |
| Cancelled | By the holder or by you. |
A claim's page shows the account, the Proof that held (TXT record,
Name servers, or Below a domain of the account), the token, who asked
(account:<username> from the panel, api:<username> from the API and
MCP), the checks with the Last result in words, and the Evidence:
what the deciding check saw, i.e. the delegation and how many parent
servers were asked, or each name server's TXT answer.
Cancel stops an open claim; the domain isn't added, and the holder can open a new claim for it, with a new token. Cancelling is in the admin app only. An account's Domains tab lists its claims too, beside its domains and its removals.
elpanctl service domain claim list [--account=<username>] [--state=<state>] [--limit=<n>]
--state takes pending, verified, provisioned, failed, expired
or cancelled.
Disputes between accounts
| Case | What happens |
|---|---|
| Two accounts claim one name | Both claims stay open. The first proven is added; the other fails when it's provisioned, because the name is then held by someone else. |
A name inside another account's domain, e.g. shop.example.com while B holds example.com | Refused at once, whatever the proof. Only B can add names under example.com. The same goes for the server's own zones. |
A name above another account's domain, e.g. example.com while B holds shop.example.com | Allowed, with proof. B's domain stays B's and keeps answering for its own names; the claim's page warns the claimant. |
To settle a dispute, the claim's evidence and the audit lines say who proved what, how, and when. Remove the domain from the account that shouldn't have it (Remove a domain), then add it to the right one with Add Domain, which needs no proof.
The risk of the name server proof
A delegation to this server's name servers shows that the domain's owner wants it on this server; it doesn't say in which account. Any account on the server with room under its limit can claim such a domain, and the first to claim it gets the domain's mail and website.
That matters for a dangling delegation: a domain whose name servers still point at this server after it left an account, by a removal or by the account's deletion, or one delegated here before anyone added it. Any account can claim it with the name server proof, and the worker adds it within minutes.
The proof is always accepted, because a holder with no DNS host of their own has no other way to prove control. What you can do:
- Choose who can add. Only an account with a limit above 0 can claim a domain. On a server whose accounts don't trust each other, give limits only to the ones you trust, or turn the switch off.
- Close delegations. When a domain leaves an account, the removal's dry run warns when the parent still delegates it here; have the holder change the name servers at the registrar. The account docs ask them to.
- Watch what is added.
service domain claim list --state=provisioned, or theDomain claim verifiedlines with the methodns.
A domain taken this way is removed like any other, and added back to its owner with Add Domain.
Audit lines
Each step of a claim is a line on the server's auth syslog channel:
| Line | Holds |
|---|---|
Domain claim opened | The claim, the name, the account and who asked. |
Domain claim verified | The method (txt, ns, parent-domain) and the evidence that decided: the name servers, the zone and record asked, the parent servers asked. |
Domain claim provisioned, Domain claim failed | The method, and the reason a claim failed. |
Domain claim cancelled | Who cancelled it: account:<username>, api:<username> or admin:<id>. |
Domain claim expired |
A holder's removal writes the same lines as yours, Domain removal started
with requestedBy account:<username> or api:<username>.
Rate limits
| What | Limit |
|---|---|
| Opening claims | 20 an hour per account. |
| Check now | 30 an hour per account, and once a minute per claim. |
| Open claims at once | Two more than the domains the account has room for; 20 for an account with no limit. |
These are fixed. A holder over one gets 429 with Retry-After, or 422
limit-exceeded for the open claims.