---
title: "Creates a new nameserver set."
method: POST
path: "/nameserversets"
tags: ["nameserver set"]
---

# Creates a new nameserver set.

`POST /nameserversets`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/nameserversets`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/nameserversets/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint creates a new nameserver set, allowing the customization and deployment of tailored DNS configurations for unique domain requirements.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `201` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns a `400` error code with a clear description when requests fail.</br>- **Seamless nameserver set creation:** Facilitates the creation of a nameserver set in-line with the appropriate schema, ensuring smooth and efficient organization.

## Request body

- NameserverSetRequest
  - `name` string, required: The name of the nameserver set
  - `isDefault` boolean: Whether this is the default nameserver set
  - `nameservers` union[], required: List of nameservers, can be identified by FQDN, ID, or ID or VanityNameserverFQDN
    - union
      - NameserverByFqdn
        - `fqdn` string, hostname, required: Fully Qualified Domain Name of the nameserver
      - NameserverById
        - `id` integer, required: ID of an existing system nameserver
        - `vanityNameserverFQDN` string: Custom FQDN for the vanity nameserver
  - `resourceGroupsIds` integer[], required: List of associated resource group IDs

## Response `201`

Nameserver set created successfully.

- NameserverSetResponse
  - `id` integer
  - `name` string
  - `isSystem` boolean
  - `isDefault` boolean
  - `nameservers` NameserverDetail[]
    - `id` integer
    - `isSystem` boolean
    - `isSecondary` boolean, nullable
    - `fqdn` string, hostname
    - `ipv4` string, ipv4, nullable
    - `ipv6` string, ipv6, nullable
    - `vanityNameserverFQDN` string, hostname, nullable
    - `createdTs` string, date-time
    - `modifiedTs` string, date-time
  - `domains` object[]
  - `resourceGroups` ResourceGroupDetail[]
    - `id` integer
    - `name` string
  - `createdTs` string, date-time
  - `modifiedTs` string, date-time

## Other responses

- `400`: Request is malformed or invalid.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
