Nameservers API

GET

Identify the DNS providers and nameservers behind any domain.

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.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/nameservers?domain=google.com
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "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"
    ]
  }
}

About the Nameservers API

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.

What people use it for

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.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Nameservers

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Nameservers API.

Read the docs →
Which plan fits 10,000 domain lookups a month?
The Starter plan easily covers that volume. Each lookup costs 10 credits, meaning Starter gives you up to 20,000 lookups each month at about $0.0015 per call ($1.50 per 1,000 lookups). The Free plan includes 20 lookups per month for testing.
Do I get the list of unique nameserver owners on the Free plan?
No. The unique owners summary is a premium field available on all paid plans, starting with Starter. The Free plan returns the nameserver hostnames, resolved IP addresses, and reverse DNS entries, but deduplicating and listing the unique provider organizations requires a paid subscription.
What nameserver details does the API return for each domain?
The API returns the total nameserver count, whether multiple providers are used, and detailed records for each authoritative nameserver. Each record contains the nameserver hostname, its resolved IP addresses, reverse DNS, and the owner domain.
Are nameserver records queried in real time?
Yes. The API performs real-time DNS lookups by querying NS records directly for the domain, resolving each nameserver hostname to its IP address and running reverse DNS checks on demand.
Can I display nameserver details inside a commercial security or monitoring tool?
Yes. Any paid plan allows you to integrate the lookup data into your commercial product or dashboard. You are free to store and display the results to your users, provided you do not resell or redistribute the raw API data directly.

Ready to build with Nameservers? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs