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

# POST /dns

`POST /dns`

Create a DNS

Body:
```
{
  "domain": Domain NAME, string, required
  "name": string, required
  "type": string, required
  "content": string, required
  "data": object, optional
  "ttl": integer, required, Must be between 60 and 86400, or 1 for 'automatic'
  "priority": integer, Required for MX, SRV and URI records, unused by other record types
  "proxied": boolean, optional
}
```

## Request body

- DNSBody
  - `domain` string
  - `name` string
  - `type` string
  - `content` string
  - `data` DNSDataProp
    - `digest_type` string
    - `protocol` string
    - `content` string
    - `proto` string
    - `digestType` string
    - `type` string
    - `name` string
    - `priority` string
    - `key_tag` string
    - `algorithm` string
    - `certificate` string
    - `target` string
    - `flags` string
    - `public_key` string
    - `digest` string
    - `value` string
    - `order` string
    - `preference` string
    - `service` string
    - `regex` string
    - `replacement` string
    - `nameserver` string
    - `usage` string
    - `selector` string
    - `matching_type` string
    - `weight` string
    - `port` string
    - `fingerprint` string
    - `lat_degrees` string
    - `lat_minutes` string
    - `lat_seconds` string
    - `lat_direction` string
    - `long_degrees` string
    - `long_minutes` string
    - `long_seconds` string
    - `long_direction` string
    - `precision_horz` string
    - `precision_vert` string
    - `altitude` string
    - `size` string
  - `ttl` integer
  - `priority` string
  - `proxied` boolean

## Response `200`

Success

- DNSFull
  - `id` string
  - `name` string
  - `type` string
  - `content` string
  - `data` DNSDataProp
    - `digest_type` string
    - `protocol` string
    - `content` string
    - `proto` string
    - `digestType` string
    - `type` string
    - `name` string
    - `priority` string
    - `key_tag` string
    - `algorithm` string
    - `certificate` string
    - `target` string
    - `flags` string
    - `public_key` string
    - `digest` string
    - `value` string
    - `order` string
    - `preference` string
    - `service` string
    - `regex` string
    - `replacement` string
    - `nameserver` string
    - `usage` string
    - `selector` string
    - `matching_type` string
    - `weight` string
    - `port` string
    - `fingerprint` string
    - `lat_degrees` string
    - `lat_minutes` string
    - `lat_seconds` string
    - `lat_direction` string
    - `long_degrees` string
    - `long_minutes` string
    - `long_seconds` string
    - `long_direction` string
    - `precision_horz` string
    - `precision_vert` string
    - `altitude` string
    - `size` string
  - `ttl` integer
  - `priority` integer
  - `proxied` boolean
  - `domain` string

## Other responses

- `400` — code == 1: Priority is required for MX, SRV and URI records<br /> code == 2: Domain not found (Bohr)<br /> code == 3: Domain not found (Cloudflare)
- `403` — Forbidden
- `404` — Domain not found
- `500` — Server error

---

[API](https://skmtc.net/bohr-io/apis/bohr-io-api.md) · [All operations](https://skmtc.net/bohr-io/apis/bohr-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bohr-io/bohr-io-api/revisions/926405b5dade/schema)
