---
title: "Bulk update DNS"
method: PUT
path: "/domains/bulk-dns"
tags: ["Domains"]
---

# Bulk update DNS

`PUT /domains/bulk-dns`

## Request

- Base URL: `https://api.mailforge.ai/public`
- URL: `https://api.mailforge.ai/public/domains/bulk-dns`
- Auth: API key in header `Authorization`

Updates DNS records for multiple domains at once.

## Request body

- ModelsDNSUpdatePayload
  - `cnameRecords` ModelsCNameRecord[]
    - `address` string
    - `hostName` string
  - `dmarcEmail` string
  - `dmarcPolicy` string
  - `domainRecords` ModelsDomainRecord[]
    - `editable` boolean
    - `name` string
    - `type` string
    - `value` string
  - `domains` string[]
  - `forwardToDomain` string
  - `removeENOMRecords` boolean
  - `replacementDKIMRecord` ModelsDomainRecord
    - `editable` boolean
    - `name` string
    - `type` string
    - `value` string
  - `replacementMXRecord` ModelsDomainRecord
    - `editable` boolean
    - `name` string
    - `type` string
    - `value` string
  - `replacementSPFRecord` ModelsDomainRecord
    - `editable` boolean
    - `name` string
    - `type` string
    - `value` string

## Response `202`

Accepted

## Other responses

- `400`: Invalid request

---

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