Enabling domain reselling on your deployment
Domain reselling is optional per deployment. A deployment that configures nothing has no domain reselling, and nothing about it fails: no errors, no retries, nothing offered to customers. This page is for the people who run a deployment. Customers should read Buy and manage a domain.
What you are switching on
Customers search for names, pay from their wallet, and the kernel registers the name through a registrar account that you hold and keep funded. The kernel never registers or renews without a paid invoice behind it, and it turns the registrar's own auto-renew off on every domain. Dynadot is the launch registrar. ResellerClub is planned as a later adapter.
1. Set up the Dynadot account
- Create a Dynadot account and fund it in EUR. Registration and renewal debit this prepaid balance. Using EUR avoids currency conversion. A EUR 200 low-balance alert is the suggested starting point.
- Decide between a plain API account and Dynadot's reseller program. The reseller program's terms, and whether it lets you send the registrant verification email under your own name, have not been confirmed.
- Create an API key in the Dynadot API settings, and whitelist your cluster's egress IP if Dynadot asks for it.
- Create a sandbox account and key as well. The sandbox is pre-funded and uses a separate key; activation can take a while and some commands are unavailable there.
- Turn off the account-level auto-renew default at Dynadot. The kernel also switches it off per domain after registration, but whether the API can do that has not been confirmed, so set the account default off by hand once.
- Keep a person responsible for topping the balance up. Topping up is recorded as a manual journal in the ledger, not a customer payment.
2. Configure the kernel
Configuration is environment variables on the kernel. Secrets come from the deployment's Kubernetes Secret.
| Variable | Meaning |
|---|---|
REGISTRAR_BACKEND | dynadot, resellerclub or fake. Unset means not configured. |
DYNADOT_API_KEY | Secret. The Dynadot API key. |
DYNADOT_API_SECRET | Secret. Reserved for the later REST v2 signing. |
DYNADOT_BASE_URL | Defaults to https://api.dynadot.com. The sandbox is https://api-sandbox.dynadot.com. |
RESELLERCLUB_AUTH_USERID, RESELLERCLUB_API_KEY, RESELLERCLUB_BASE_URL | For the later ResellerClub adapter. |
Rules:
- A backend with missing credentials is a configuration error. The kernel refuses to boot and says what is missing. A half-configured registrar is a mistake, while an absent one is a choice.
fakeis refused in production. It exists for tests (see below).- Credentials never go in the database or in admin. Markup, extensions, renewal lead time and the operator contact are operational settings that staff edit in admin.
- The launch adapter uses Dynadot's api3, which sends the key in the query string. The kernel never logs request URLs for this reason; do not add a proxy that does.
Roll the kernel to apply the change.
3. Check it against the sandbox first
Before pointing at the live API:
- Set
REGISTRAR_BACKEND=dynadot,DYNADOT_BASE_URL=https://api-sandbox.dynadot.comand the sandbox key. - In admin, open Domains. The registrar status should show the backend, sandbox, and the balance.
- Run a TLD sync, enable the extensions, and register a test name end to end.
- Several behaviours depend on how Dynadot answers, and have not been confirmed yet: whether
.escan be registered with only a tax ID, whether external nameservers must be added to the account first, what the error looks like when the registrar balance is too low, and how a domain's expiry, status and lock fields are reported. Treat the sandbox run as the check, and fix the adapter, not the data, if a result differs. - Switch to the live URL and key.
4. Settings in admin
Defaults, all editable without a deploy:
| Setting | Default |
|---|---|
| Markup over the registrar's cost | 20% |
| Minimum margin per year | EUR 2.00 |
| Price ending | .99 |
| Extensions | .com .net .org .eu .io .gg .xyz .dev .app (.es once confirmed) |
| Renewal invoice issued | 30 days before expiry |
| Late renewal window | 20 days after expiry, per extension |
| New-organization purchase limit | 3 registrations per 24 hours (20 for other organizations) |
| Search limits | 20 per user and 300 per deployment per minute |
| Low registrar balance alert | EUR 200 |
Prices are computed from the registrar's cost, using whichever is higher of registration and renewal, so the customer pays one price every year. The daily cost sync raises prices with the usual notice to existing subscribers, and lowers them for new purchases only. A renewal that now costs more than the customer pays is still renewed, and staff are alerted.
The refund rules are fixed: no refund once registered, and a registration that fails is refunded in full to the wallet automatically (staff can turn it into a cash refund). Legal sign-off is needed before opening to customers: checkout shows the registrar's agreement and the ICANN registrant rights page, and your terms must say you act as reseller.
5. What staff see in admin
When configured, the Domains section has:
- Registrar status: backend, sandbox or live, balance, the low-balance threshold.
- TLD catalogue: enable and disable, costs, retail price and manual override, sync now.
- Settings: the table above plus the operator contact used for the technical and billing contacts.
- Registered domains across all organizations: detail, sync now, renew (charged or free), nameservers and DNS on a customer's behalf, privacy, lock, transfer code, delete in add grace (within 5 days of registration), restore from redemption.
- Failed operations: retry or abandon (abandoning a registration refunds it).
- An organization's domains tab, which also lists domains verified by TXT.
- A per-organization purchase limit override.
Staff are alerted when the registrar balance is low, when the registrar rejects credentials, when an operation keeps failing and when a renewal would be at a loss. The registrant verification email cannot be re-sent through the API as far as has been confirmed, so staff resend it from Dynadot's panel.
6. What an unconfigured deployment looks like
- The kernel boots normally and logs one line, "domain registration: not configured".
- The availability check answers "not available". Console and dashboard hide Buy a domain, search and registrant details; the Domains page is exactly as it was.
- Customer and admin write routes answer a clean 404 with the code
capability_not_available, never a 500. - Background tasks are registered but return at once, with no error logs.
- Admin shows "Domain registration is not configured on this deployment" with a link to this page, and hides the catalogue, settings and operations pages.
- Existing TXT verification and the custom-domain picker are unchanged.
If you remove the configuration after selling domains, the domains still exist at the registrar. The kernel logs a warning on each boot with the count, admin shows a red banner, and the domains behave as expiring, with renewal impossible. Configure the backend again.
7. The fake backend, for tests
Set REGISTRAR_BACKEND=fake together with --allow-fake-registrar (the e2e compose overlay does both). The fake registrar is deterministic and in-memory, and is never accepted in production. The label of the name drives the outcome:
| Name contains | Behaviour |
|---|---|
taken | Reported unavailable. |
premium | Reported as a premium name. |
nofunds | The registrar reports insufficient funds on the first two attempts. |
flaky | The first attempt answers ambiguously although the registration took effect, which proves the queue reads before it retries. |
reject | The registry refuses the registration. |
slow | Accepted, and visible only after two status checks. |
xfer | Leaves the account after a transfer code is issued, as a transfer out would. |
A backdate hook sets a registration date in the past, to test the 60-day transfer rule.
