---
title: "Create DNS domain"
method: POST
path: "/dns-domain"
tags: ["domain"]
---

# Create DNS domain

`POST /dns-domain`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dns-domain`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dns-domain/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object: DNS Domain
  - `unicode-name` string: Domain name

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2026-03-16** `e05707a7b346`: 2 info
  - api tag `domain` added
  - api tag `dns` removed
- **2025-08-10** `814bf1ccd925`: 2 warning, 4 info
  - removed the optional property `created-at` from the response with the `200` status
  - removed the optional property `unicode-name` from the response with the `200` status
  - added the optional property `message` to the response with the `200` status
  - added the optional property `reason` to the response with the `200` status
  - …2 more
- **2023-02-03** `6e9809fd1444`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dns-domain/post.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
