---
title: "Reverse Name Server"
method: GET
path: "/v1/{nameServer}/name-server-domains/"
tags: ["Lookups"]
---

# Reverse Name Server

`GET /v1/{nameServer}/name-server-domains/`

## Request

- Base URL: `https://api.domaintools.com`
- URL: `https://api.domaintools.com/v1/{nameServer}/name-server-domains/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - HTTP basic
  - API key in query parameter `signature`
- TypeScript: <https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api/docs/v1/:nameServer/name-server-domains/get.ts> (a function with typed inputs; its response is checked against the schema)

List of domains that share the same primary name server.

## Path parameters

- `nameServer` string, hostname, required: A valid, fully-qualified domain name (FQDN).

## Query parameters

- `limit` integer
- `app_partner` string: A short identifier, code, or handle.
- `app_name` string: A short identifier, code, or handle.
- `app_version` string: A short identifier, code, or handle.
- `format` 'html' | 'json' | 'xml': The desired response format.

## Response `200`

OK

- ReverseNameServer: Response for the Reverse Name Server endpoint.
  - `response` object
    - `name_server` object
      - `hostname` string, hostname
      - `primary` integer
      - `secondary` string
      - `total` integer
    - `primary_domains` string[]
    - `secondary_domains` string[]

## Other responses

- `400`: 400: Bad Request. The request was invalid. The response will contain details about the error.
- `401`: 401: Unauthorized. API credentials are required and were not provided, or the provided credentials are not valid.
- `403`: 403: Forbidden. The API credentials provided do not have access to the requested resource or endpoint.
- `404`: 404: Not Found. The requested resource does not exist.
- `500`: 500: Internal Server Error. An unexpected error occurred on the server. If the problem persists, contact DomainTools support.
- `503`: 503: Service Unavailable. The service is temporarily unavailable.

---

[API](https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api.md) - [All operations](https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api/llms.txt) - [OpenAPI document](https://skmtc.dev/domaintools/apis/domaintools-lookups-and-monitors-api/revisions/832f423a9729?raw)
