Domains and DNS
Disable a domain
DELETE/api/v1/domains/:domain
Who can use this: Site adminsAs Markdown
Turns the domain off (active becomes 0), so mail to it is refused from now on. Nothing is deleted: its DNS zone is still served and its extra addresses stay. Change a domain's settings with active true turns it back on.
Parameters
| Name | Where | What it is |
|---|---|---|
| domain required | path | The domain name.e.g. example.com |
Good to know
- A domain that isn't listed answers 404.
- homelab-cli's
dns domains disableturnsmail_enabledoff instead, through Change a domain's settings. Mail to the domain is refused either way.