---
title: "Create Dns"
method: POST
path: "/api/domains/{domain_id}/dns"
tags: ["services"]
---

# Create Dns

`POST /api/domains/{domain_id}/dns`

## Request

- Base URL: `https://api.monacloud.vn`
- URL: `https://api.monacloud.vn/api/domains/{domain_id}/dns`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Token`

Tạo dữ liệu hoặc thực thi thao tác tại `/api/domains/{domain_id}/dns`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.

## Path parameters

- `domain_id` string, required

## Request body

- DomainDNSRequest
  - `type` 'A' | 'CNAME' | 'MX' | 'TXT', required
  - `name` string, required
  - `content` string, required
  - `ttl` integer
  - `proxied` boolean
  - `priority` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud.md) · [All operations](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud/llms.txt) · [OpenAPI document](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud/revisions/34a120ed37ce?raw)
