---
title: "Set custom nameservers (bulk)"
method: POST
path: "/mcp/v1/actions/ud_dns_nameservers_set_custom"
tags: ["DNS Management"]
---

# Set custom nameservers (bulk)

`POST /mcp/v1/actions/ud_dns_nameservers_set_custom`

## Request

- Base URL: `https://api.unstoppabledomains.com`
- URL: `https://api.unstoppabledomains.com/mcp/v1/actions/ud_dns_nameservers_set_custom`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/unstoppabledomains/apis/user-api/docs/mcp/v1/actions/ud_dns_nameservers_set_custom/post.ts> (a function with typed inputs; its response is checked against the schema)

Configure external nameservers (e.g., Cloudflare, Route 53) for one or more domains. Supports up to 50 domains per request.

## Request body

- object
  - `domains` object[], required: Array of domain configurations
    - `name` string, required: Domain name
    - `nameservers` string[], required: Nameserver hostnames
    - `dnssec` object: Optional DNSSEC DS records

## Response `200`

Bulk operation result

- BulkDnsOperationResponse: Response for bulk DNS operations (nameservers, hosting). Contains results per domain with success/failure tracking.
  - `results` object[]
    - `domain` string: Domain name
    - `success` boolean: Whether the operation succeeded
    - `operationId` string: Track with ud_domain_pending_operations (if successful)
    - `nameservers` string[]: Configured nameservers (for nameserver operations)
    - `hasDnssec` boolean: Whether DNSSEC is configured (for nameserver operations)
    - `config` object: Hosting config (for hosting operations)
      - `type` string
      - `subName` string, nullable
      - `targetUrl` string, nullable
    - `subName` string: Subdomain removed (for hosting remove operations)
    - `deletedAll` boolean: Whether all configs were removed (for hosting remove)
    - `error` string: Error message (if failed)
  - `successCount` number: Number of successful operations
  - `failureCount` number: Number of failed operations

## Other responses

- `401`: Authentication required

---

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