---
title: "Update DNS record"
method: PUT
path: "/domains/{domain}/dns"
---

# Update DNS record

`PUT /domains/{domain}/dns`

## Request

- Base URL: `https://namemy.app/api/v1`
- URL: `https://namemy.app/api/v1/domains/{domain}/dns`
- Auth: HTTP bearer

## Request body

- object
  - `type` 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SRV' | 'CAA', required
  - `host` string, required
  - `value` string, required
  - `ttl` integer
  - `priority` integer
  - `id` string

## Response `200`

Record updated

- DnsRecord
  - `id` string
  - `type` 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SRV' | 'CAA'
  - `host` string
  - `value` string
  - `ttl` integer
  - `priority` integer, nullable

---

[API](https://skmtc.dev/namemy/apis/namemy-app-api.md) · [All operations](https://skmtc.dev/namemy/apis/namemy-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/namemy/apis/namemy-app-api/revisions/1c302ede4b63?raw)
