---
title: "Lists the nameservers of a specific primary domain."
method: GET
path: "/domains/primary/{domainId}/nameservers"
tags: ["domains - primary"]
---

# Lists the nameservers of a specific primary domain.

`GET /domains/primary/{domainId}/nameservers`

## Request

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

This endpoint lists the nameservers of a specific primary domain, allowing users to verify DNS configurations and ensure proper domain resolution.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `200` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns a `404` error code with a clear description when requests fail.</br>- **Targeted data retrieval:** Employs the `domainId` parameter to return the specified domain's nameservers, ensuring accuracy and relevance in the response.

## Path parameters

- `domainId` integer, required

## Response `200`

Nameservers returned successfully.

- 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

## Other responses

- `404`: Resource not found.

---

[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)
