# Nameservers API

> Nameservers queries authoritative DNS records for any domain to list its nameservers, IP addresses, and reverse DNS records. It detects multiple DNS providers, counts total nameservers, and identifies who runs each server.

**Endpoint:** `GET https://api.apiverve.com/v1/nameservers`  
**Category:** Networking  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/nameservers

## Overview

Nameservers works by querying DNS NS records for a domain to retrieve its authoritative nameservers. For each nameserver, it resolves IP addresses and performs reverse DNS lookups to identify the hosting provider. Works as a nameserver lookup (NS lookup) and names the provider behind each server: a provider family from the hostname plus a readable host name such as Amazon Route 53, GoDaddy or Cloudflare for the common DNS hosts.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/nameservers?domain=google.com" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | The domain name to lookup nameservers for. domain |

## Response fields

- `domain` — string · The domain the nameservers were looked up for
- `nameserverCount` — number · Number of nameservers found
- `hasMultipleProviders` — boolean · Whether the nameservers span more than one DNS provider: more than one provider family in the hostnames, or more than one network behind them (self-branded nameservers run by two operators count)
  - `nameservers.0.nameserver` — string · Hostname of the nameserver
  - `nameservers.0.ipAddresses` — array · Addresses the nameserver hostname resolves to
  - `nameservers.0.reverseDns` — string · Hostname the nameserver's address resolves back to
  - `nameservers.0.owner` — string · Registrable domain of the reverse DNS name for the nameserver's first address. It shows who set the reverse record, which is not always who runs the server; network has the operator
- `uniqueOwners` — array · Distinct owner domains (from each nameserver address's reverse DNS). uniqueNetworks names who actually runs the servers · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "domain": "google.com",
    "nameserverCount": 4,
    "hasMultipleProviders": false,
    "nameservers": [
      {
        "nameserver": "ns1.google.com",
        "ipAddresses": [
          "216.239.32.10"
        ],
        "reverseDns": "ns1.google.com",
        "owner": "google.com"
      },
      {
        "nameserver": "ns2.google.com",
        "ipAddresses": [
          "216.239.34.10"
        ],
        "reverseDns": "ns2.google.com",
        "owner": "google.com"
      }
    ],
    "uniqueOwners": [
      "google.com"
    ]
  }
}
```

## Use cases

- **DNS Redundancy Verification** — Site reliability engineers check whether production domains use multiple DNS providers to prevent total outages during single-provider DNS incidents.
- **Domain Transfer Tracking** — When migrating web properties between registrars, DevOps teams verify nameserver IP propagation before cutting over live production traffic.
- **Phishing Infrastructure Profiling** — Flag newly registered copycat domains pointing to suspicious nameserver infrastructure by analyzing reverse DNS and server ownership domains.
- **Hosting Provider Audits** — Compliance platforms monitor external enterprise domains to confirm their DNS points only to approved corporate nameservers and infrastructure.

## SDKs

- **npm** — `npm install @apiverve/nameservers` (https://www.npmjs.com/package/@apiverve/nameservers)
- **NuGet** — `dotnet add package APIVerve.API.Nameservers` (https://www.nuget.org/packages/APIVerve.API.Nameservers)
- **Source** — https://github.com/apiverve/nameservers-api

## More

- Full reference: https://docs.apiverve.com/ref/nameservers
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
