---
title: "Update DNS information for a domain"
method: PUT
path: "/accounts/{accountIdentifier}/dns/{domainIdentifier}"
tags: ["Domains"]
---

# Update DNS information for a domain

`PUT /accounts/{accountIdentifier}/dns/{domainIdentifier}`

## Request

- Base URL: `https://api.mittwald.de/v1`
- URL: `https://api.mittwald.de/v1/accounts/{accountIdentifier}/dns/{domainIdentifier}`
- Auth: none declared

Updates DNS records for all available types

## Path parameters

- `accountIdentifier` string, required
- `domainIdentifier` string, required

## Request body

- DNSRecordRequest
  - `mx` union
    - ManualMxRecord[]
      - `priority` integer, required
      - `value` string, required
    - 'AUTO' | 'NONE'
  - `target` union
    - string: CNAME (only allowed for subdomains)
    - IpRecord
      - `a` string, required
      - `aaaa` string
  - `ns` string[]
  - `txt` string[]
  - `srv` SrvRecord[]
    - `service` string, required
    - `protocol` 'tcp' | 'udp' | 'tls', required
    - `server` string, required
    - `priority` number, required
    - `weight` number, required
    - `port` number, required
  - `caa` CaaRecord[]
    - `tag` 'issue' | 'issuewild' | 'iodef', required
    - `flag` 0 | 128, required
    - `domain` string, required

## Response `200`

Successful operation

- DNSUpdateResponse
  - `message` string

## Other responses

- `400`: Validation exception

## Changes

- **2024-10-12** `36cb5b338cd1`: 1 warning, 3 info
  - removed the optional property `errors` from the response with the `400` status
  - added the new optional request property `caa`
  - added the optional property `field` to the response with the `400` status
  - added the optional property `validationErrors` to the response with the `400` status

[Operation history](https://skmtc.dev/mittwald/apis/schnittstellen-fu-r-mittwald-kunden/changes/accounts/:accountIdentifier/dns/:domainIdentifier/put.md)

---

[API](https://skmtc.dev/mittwald/apis/schnittstellen-fu-r-mittwald-kunden.md) - [All operations](https://skmtc.dev/mittwald/apis/schnittstellen-fu-r-mittwald-kunden/llms.txt) - [OpenAPI document](https://skmtc.dev/mittwald/apis/schnittstellen-fu-r-mittwald-kunden/revisions/7c745e3004a0?raw)
