Skip to main content

Nameservers API

free
GET/v1/dns/ns

Resolves nameservers and directly checks their authoritative responses, including Cloudflare-hosted authoritative servers. Reports IPv4/IPv6 information and distinguishes measured authority from unavailable checks.

What It Does

Uses DNS discovery plus bounded direct DNS probes to nameserver addresses. Records authoritative-answer evidence, lame-delegation findings and per-server validation outcomes. A timeout or unsupported response does not establish that a nameserver is authoritative or secure.

Why It's Useful

Separates published nameserver addresses from measured authority and incomplete checks. Parent referral glue is not measured and remains unknown. A bounded TCP sample helps diagnose authority failures without claiming full transport or address coverage.

Use Cases

Solutions Architect

Competitive Infrastructure Analysis

Analyze which DNS providers competitors use to understand their infrastructure choices, detect lame delegations, and assess DNS resilience.

Inform architecture decisions based on industry patterns and competitor choices.

DevOps Engineer

DNS Migration Planning

Document current nameserver configuration before migrating DNS to a new provider.

Ensure complete DNS migration with no orphaned records or misconfigurations.

Security Analyst

Vendor Assessment

Evaluate third-party vendor DNS infrastructure as part of security due diligence.

Identify vendors using consumer-grade DNS that may lack enterprise security features.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to query nameservers forExample: example.com

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
completebooleanWhether owning-zone discovery and the stated sampled authority coverage completed.
zonestring|nullSOA-discovered owning zone; null when discovery did not complete.
domainstringThe queried domain
nameserversarrayPer-NS published addresses, sampled address_checks, authority_coverage, lookup completeness, observed authority and unknown has_glue. At most five NSes and two addresses each are tested.
providerobjectDetected DNS provider name, vendor, is_premium, features, and confidence
countnumberNumber of nameservers configured
has_ipv4booleanAt least one NS resolves over IPv4
has_ipv6booleanAt least one NS resolves over IPv6 (RFC 3901)
ipv6_reachableboolean|nullTrue when a sampled IPv6 address answered over TCP/53; null when not established. AAAA presence alone is not reachability.
authoritative_countnumberNumber of nameservers that returned AA=1 to a direct SOA probe
lame_countnumberNameservers with an observed non-authoritative result; unknown probes do not imply lame delegation.
recommendationsarrayContextual nameserver count, publication and measured authority advice. Parent glue and untested transport remain unknown.

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the free plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/dns/ns?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/dns/ns?domain=example.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/dns/ns?domain=example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Nameservers guide

Learn the concepts, choose a practical workflow, and interpret the observations from Nameservers before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Nameservers endpoint live in the playground.

    Nameservers API Reference | EdgeDNS