Nameservers API
free/v1/dns/nsResolves 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
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.
DNS Migration Planning
Document current nameserver configuration before migrating DNS to a new provider.
Ensure complete DNS migration with no orphaned records or misconfigurations.
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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | The 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.
| Field | Type | Description |
|---|---|---|
complete | boolean | Whether owning-zone discovery and the stated sampled authority coverage completed. |
zone | string|null | SOA-discovered owning zone; null when discovery did not complete. |
domain | string | The queried domain |
nameservers | array | Per-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. |
provider | object | Detected DNS provider name, vendor, is_premium, features, and confidence |
count | number | Number of nameservers configured |
has_ipv4 | boolean | At least one NS resolves over IPv4 |
has_ipv6 | boolean | At least one NS resolves over IPv6 (RFC 3901) |
ipv6_reachable | boolean|null | True when a sampled IPv6 address answered over TCP/53; null when not established. AAAA presence alone is not reachability. |
authoritative_count | number | Number of nameservers that returned AA=1 to a direct SOA probe |
lame_count | number | Nameservers with an observed non-authoritative result; unknown probes do not imply lame delegation. |
recommendations | array | Contextual 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 --request GET 'https://api.edgedns.dev/v1/dns/ns?domain=example.com' \
--header "Authorization: Bearer YOUR_API_KEY"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);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.