Domains and DNS
Services with HTTP routing use a hostname under the panel's configured domain. For example, my-app.panel.example.com can route to the application's container through Traefik. DNS resolution, proxy routing and certificate issuance are separate steps; a running container alone proves none of them.
Service domains
Open the service's Settings tab; its Domains card shows its primary hostname, routing status and SSL status. Use the edit action to change a subdomain. For a custom hostname, use Add custom domain, then create the DNS record shown by the panel at your DNS provider. The form shows a CNAME target when applicable.
Verification runs in the background every two minutes. A custom domain turns Active only when its DNS points at this panel: a CNAME to the target the form shows, or an A record to the same address that target has. A domain that resolves to another server stays unverified, and after 48 hours it shows an error. There is no manual Verify button in this view.
When a custom domain turns Active, the panel restarts the app's container once so the proxy routes the new address to the app's main port, and requests a certificate for it from Let's Encrypt over HTTP-01 (port 80 must be reachable). A private app stays private on its custom domain too. Removing an Active custom domain restarts the container again to drop the route. A stopped app, and an app built from Git, are not restarted: they pick the change up at their next deploy. Check the final HTTPS URL in a browser before handing it to a customer. Removing a custom domain in the panel does not remove a manually created record at another DNS provider.
A custom domain is stored in lower case, and the same address cannot be added twice in any spelling. It cannot be the panel's service domain or a name under it (each service's own address there is its subdomain), nor the panel's or login server's address. The proxy also gives every custom domain the lowest routing priority, so it can never take over an address the platform or another app answers on. The admin MCP tool manage_domains applies the same rules, and its remove only removes a custom domain of the service it names; any other name is reported as not found and left in place.
In an app with more than one container, each address (the main one and every custom domain) can be sent to a chosen container and port with its Goes to list. See Send an address to another container.
Reserved names
A service answers at <subdomain>.<your domain>. The platform answers on the same domain: the login server at auth, the AI gateway at ai. Two things answering on one address would break sign-in or, worse, put an app on the sign-in address. So these names cannot be used as a service name or a subdomain, in the way a server reserves the usernames root and daemon:
auth, ai, www, api, admin, panel, login, sso, keycloak, id, traefik, docs, status, mail
Any other name that would produce a hostname your installation's panel, login server or AI gateway answers on is refused as well. A subdomain must also be a single DNS label: lowercase letters, digits and hyphens, starting and ending with a letter or digit.
A refused name fails with the name "auth" is reserved for the platform; choose another name. The text is English in every interface language. Nothing is saved and no container is touched. A name that only contains a reserved word, such as status-page or api-3f9a, is fine. The list applies to service names and subdomains, not to custom domains.
A service that already uses a reserved subdomain (created before this rule) keeps running. The panel writes an error line reserved subdomain in use, with the service ID and hostname, to its log at every start. To rename it:
- Open the service, then its Settings tab (the Domains card).
- Use the edit action on the primary hostname and enter a free name.
- Save. If the name is refused, the dialog stays open and shows the reason.
The rename replaces the container, as described next. Rename a service on auth or ai promptly; the other names collide with nothing today.
Changing a subdomain
Changing a subdomain replaces the service's container so the proxy routes the new hostname; expect a short interruption. The old hostname stops working at once. The new container keeps everything the deploy gave it: environment variables and vault values, volumes, command, healthcheck, config files, limits and, for apps behind the panel's single sign-on, the sign-on gate. A variable built from the service URL follows the new hostname. Services made of several containers cannot change their subdomain; deploy a replacement instead.
The change runs as one operation on the service, like a deploy: it does not start while another operation (deploy, reassignment, secret rotation) is running. If it is refused before the container is touched (for example a vault value cannot be read), the service keeps running on the old hostname while the Domains card under Settings already shows the new one; fix the cause and change the subdomain again. If it fails after the old container was removed, the service shows Error and is blocked: see the next section.
If a change failed and the service is blocked
A change that fails after it started to replace the container leaves the service's operation claim "in doubt". Until that claim is cleared, every operation on the service is refused with "service operation active or awaiting reconciliation". That includes Redeploy and the job's own automatic retry, so the service does not come back by itself. The same happens when the change went through but one step's result is unknown, for example the new container could not be attached to the proxy network; the service can then be running and still blocked.
There is no button for this yet (an operator tool is tracked as AI-1061). The hosting administrator clears the claim in the panel's database, on the host. On a default install open it with docker exec -it aiadminpanel_postgresql psql -U aiadminpanel.
-- 1. Inspect. One row with state 'in_doubt' is the blocking claim.
SELECT service_id, state, owner_id, acquired_at
FROM service_operation_claims WHERE service_id = '<service id>';
-- 2. Clear it. Only an in-doubt claim; never an 'active' one.
DELETE FROM service_operation_claims
WHERE service_id = '<service id>' AND state = 'in_doubt';
The service ID is in the address of the service's page in the panel. Before step 2, check in the panel log that no job for this service is still running; an active row means one is, and must be left alone.
- Then finish the change: change the subdomain again in the Domains card under Settings, or choose More → Redeploy. Either rebuilds the container; a container left half-created by the failed run is cleaned up. The status returns to Running.
- Check the final HTTPS URL in a browser.
If you changed a subdomain before this fix
Releases before the AI-1099 fix rebuilt the container without its environment, volumes, command, healthcheck, config files and single-sign-on labels. The service either failed to start, or started like a fresh install with its data volume left on disk but not mounted, and a single-sign-on app became reachable without the gate. The panel keeps no record of past subdomain changes, so check the containers on the host:
docker ps -a --filter label=aiadminpanel.managed=true \
--format '{{.Names}} deployment={{.Label "aiadminpanel.deployment_id"}} mounts={{.Mounts}}'
An affected container is named <service>_<service>_1 and shows no mounts. A healthy one is named <service>-<4 characters>_<part>_1. Go by the name: deployment= is also empty on healthy containers after a secret rotation, a reassignment or the repair below.
To repair, Redeploy the service, or after upgrading change its subdomain once more. Either rebuilds the full container and mounts the existing volume again. If Redeploy stops at pull_images with a Compose parse error, use the subdomain route. Anything the app wrote while it ran without its volume lived only inside that container and is lost at the repair; copy it out first with docker cp if you need it. Until repaired, treat a single-sign-on app as publicly reachable.
DNS and certificates
Configure the panel's DNS integration in Settings. Three DNS providers are supported: Cloudflare (below), PowerDNS for your own or your hoster's PowerDNS server, and Manual for a DNS host without an API, where the panel shows each record for you to create and checks it. With an API provider the deploy worker can request a CNAME from the service hostname to the panel hostname; a DNS failure is logged and can leave the service needing manual DNS work. Without that integration, arrange the appropriate DNS records, commonly a wildcard for the service subdomains, with your hosting administrator.
On a new installation, DNS-01 certificate validation uses the same DNS settings as service records. Traefik hands each certificate challenge to the panel (the DNS-01 bridge), and the panel publishes the _acme-challenge TXT record with the DNS provider saved in Settings → Connectivity → DNS & Domains. So there is one credential to enter and one to rotate. See Configuration for TLS_MODE=letsencrypt-dns, the bridge's limits, and how the updater moves an older installation over once the bridge is proven to work. Keep tokens in the protected configuration system, not in examples or support messages.
Traefik requests certificates using the configured resolver. HTTP-01 requires public reachability on port 80; DNS-01 requires working DNS API access. Issuance is not immediate.
Which certificate an app gets
| Install | App addresses ({service}.{base-domain}, extra ports and routes) | Custom domains |
|---|---|---|
HTTP-01 (default, CERT_RESOLVER unset or letsencrypt, including free .host domains) | One certificate per address, validated on port 80 | Own certificate, HTTP-01 |
DNS-01 (TLS_MODE=letsencrypt-dns or the old name cloudflare, CERT_RESOLVER=letsencrypt-dns) | One shared wildcard certificate for {base-domain} and *.{base-domain}, validated through DNS | Own certificate, HTTP-01 |
On a DNS-01 install, the first app deploy orders the wildcard certificate once. Every later app reuses it, so a new app neither waits for a certificate nor counts against Let's Encrypt's limit of 50 new certificates per domain per week, and port 80 does not have to be open for app addresses. An address more than one level under the base domain (for example a.b.{base-domain}) is not covered by the wildcard; it gets its own DNS-01 certificate. A custom domain is outside your DNS zone, so it always uses HTTP-01 and needs port 80 open.
The panel reads CERT_RESOLVER when it starts and applies it to every app container it creates. An app that was deployed before the panel used the wildcard keeps its own certificate until it is redeployed (or its subdomain, owner or custom domains change, which also recreates it). Both kinds of certificate work side by side; no migration is needed. On a DNS-01 server whose port 80 is closed, such an older app had no valid certificate; redeploy it to give it the wildcard.
Cloudflare DNS settings
Open Settings → Connectivity → DNS & Domains. With Cloudflare DNS configured, each deployed service gets its subdomain automatically: template, Compose and Git deploys alike create one CNAME per address on the service's first deploy. A redeploy, or a rebuild after a Git push, keeps the address and creates no second record. A Git app first deployed before this release has no record; a wildcard record covers it, or create its CNAME by hand.
- API Token: create it at dash.cloudflare.com with the Zone:DNS:Edit permission. The panel stores it encrypted and never shows it again; leave the field empty to keep the stored token.
- Zone ID: on your domain's overview page in the Cloudflare dashboard.
- Panel Service Domain: the wildcard base domain for deployed services. Each service gets a subdomain under it, such as
myapp.apps.example.com. Deploys take this domain fromPANEL_SERVICE_DOMAINin the server's.envfile (/opt/aiadminpanel/.env), which the installer always writes, so the field shows that value read-only with a note saying so. To change it, editPANEL_SERVICE_DOMAINthere and restart the panel; apps already deployed keep their addresses until you change them. A different value sent toPUT /api/v1/settings/dnsanswers409 panel_service_domain_fixed, andGET /api/v1/settings/dnsreportspanel_service_domain_fixed: true. Before AI-2626 the page saved another domain without a word while new apps kept the.envone. The DNS checks also use the.envdomain.
Test Connection runs the DNS checks below with the saved settings and lists each one as Passed, Warning, Failed or Not checked, with a plain-language result and, for a warning or failure, how to fix it. The checks only read: they never write a DNS record, each DNS lookup gives up after 5 seconds and the whole test after 20, and the token is never shown. The test fails when any check fails; warnings do not fail it.
| Check | What it tells you |
|---|---|
credential_valid | Cloudflare accepts the saved token and it reaches at least one zone. With PowerDNS: the server accepts the API key and holds at least one zone. Not checked with Manual, as are zone_found and token_scope: there is no API. |
zone_found | The saved Zone ID is one the token reaches. Without it the panel cannot write a single record, so a missing or wrong Zone ID fails the test. With PowerDNS: the saved zone is on the server, or, with no zone saved, a zone on the server holds the Panel Service Domain. |
token_scope | The token can change only this zone. A token for more zones works but gets a warning: if it leaks, those zones are exposed too. Not checked with PowerDNS: its API key always reaches every zone on its server. |
panel_domain_resolves | The panel domain exists in DNS and points to a public address. |
wildcard_resolves | A new name under the Panel Service Domain points to the same server as the panel (PANEL_HOSTNAME when set). Without a wildcard record this is a warning when the panel creates a record per app, and a failure otherwise. |
caa_allows_letsencrypt | No CAA record stops Let's Encrypt from issuing certificates for the panel domain or the apps. |
dns01_bridge | With DNS-01 certificates (TLS_MODE=letsencrypt-dns), Traefik asks the panel's DNS-01 bridge, so the token (or, with PowerDNS, the API key) saved here is the only credential it needs. A warning means an older installation where Traefik still uses CF_DNS_API_TOKEN; a failure means Traefik expects the bridge but it is not running. With PowerDNS the bridge is the only way Traefik reaches the zone, so not using it is a warning. Not checked with HTTP-01 certificates. Not available with Manual (not a failure): wildcard certificates need a DNS API, so each domain gets its own HTTP-01 certificate. |
challenge_cleanup | No _acme-challenge TXT records were left behind for the panel, login or service domain. |
The same checks are available to API clients (POST /api/v1/settings/dns/test) and as the check_dns MCP tool. Each check has a stable name, a status, a result code, an English message and fix, and params such as the domain it looked at.
Removing a service deletes the CNAME records the panel created for its addresses at Cloudflare. A record is removed only when it still points at the panel hostname, so one you changed by hand stays. Records for custom domains are never touched. If Cloudflare cannot be reached, the service is removed anyway and the record stays; delete it in the Cloudflare dashboard.
Changing a subdomain moves its CNAME. The panel first creates the record for the new name, pointing at the panel hostname like a deploy's record. If Cloudflare refuses it, the change is refused and nothing is changed: the service keeps its old name, container and record. Once the container answers on the new name, the panel deletes the old name's record, under the same rule as a removal: only when it still points at the panel hostname, and not when another service already uses the old name again. If that delete fails, the rename still stands; the panel writes a domain.dns_record_delete_failed entry, with the record's name, to the Audit Log, and you delete the record in the Cloudflare dashboard. A record for the new name that already exists and points at the panel is reused. One that points elsewhere makes the change fail; remove or fix it first.
Saved settings apply to the next deploy without a panel restart: a new or rotated token, a changed zone ID, or a removed token (which stops new DNS records at once).
Your free domain
An installation without its own domain uses a free temporary domain from aiadminpanel.host (see Installation). The Your free domain card in Settings → Connectivity → DNS & Domains shows it, its lease and the last renewal.
- Verify an email address to keep it. Without a verified email the domain expires when the lease ends; the card says in how many days. After you verify, the panel renews the domain automatically. The address is used only to keep your domain alive.
- A lapsed domain stops resolving. The panel itself keeps running.
- "Managed domain is enabled but no claim token was found" means the install says
MANAGED_DOMAIN=true, but/opt/aiadminpanel/secrets/managed_domain_tokenis empty or missing on the host. Restore the token file from your install, or setMANAGED_DOMAIN=falsein/opt/aiadminpanel/.envif this server now uses its own domain.
Troubleshooting
- Open Settings → Connectivity → DNS & Domains and click Test Connection. Each failed or warning check says what to change.
- Compare the domain's displayed DNS target with the record at your provider.
- Check DNS propagation and any conflicting A, AAAA or CNAME records.
- Inspect the domain and SSL errors separately from application logs.
- Ask the hosting administrator to check Traefik's certificate errors and the configured validation method before changing routing or reinstalling anything.