Domains: custom hostnames
domains is a top-level list of the hostnames the slice answers on, beyond its default <user>-<slice>.ondrift.eu. It sits beside atomic / backbone / canvas, not inside them.
domains:
- host: forms.gemeente.example
- host: tenants.example.org
wildcard: true # every subdomain reaches this slice- Type
- string
- Default
- required
- Meaning
- The hostname the slice should answer on.
- Type
- string
- Default
dns-txt- Meaning
- Ownership-proof method.
dns-txtis the only accepted value.
- Type
- boolean
- Default
false- Meaning
- Route every subdomain of
hostto this slice too.
The deploy adds what is missing: a host declared here and not yet on the slice is attached. A host live on the slice and absent here is left attached and named in apply's closing report, never removed — two projects can share a slice, and a deploy cannot tell a host that is not yours from one you dropped. Take one away deliberately with drift slice domain remove <host>. Adding a host doesn't finish the job: point your DNS at the slice, then run drift slice domain verify <host>, which checks the TXT record and issues the certificate. Domain reconcile is best-effort: a failure is reported but doesn't abort the rest of the deploy.
Two things wildcard does not mean.
alice.example.org from bob.example.org is your app's job. The deploy's own add path sends host and verify only, so set the wildcard flag with drift slice domain add <host> --wildcard.