Skip to main content

DNSSEC Check API

free
GET/v1/dns/dnssec

Discovers actual SOA zone boundaries and validates supported DNSSEC trust paths from a configured root anchor. The authenticated anchor or parent-DS-matched key must sign each DNSKEY RRset before other keys are trusted. Publication, resolver AD and local cryptographic validation are distinct evidence.

What It Does

Checks signature lifetimes, signer scope, key protocol/Zone Key/revoke eligibility, valid alternatives and colliding key tags. Missing proof or unsupported local negative/alias validation remains indeterminate. A resolver-authenticated unsigned delegation terminates trust as insecure. chain=false provides diagnostics without claiming authenticated root trust.

Why It's Useful

Separates concrete authentication failures from unavailable evidence. Real cryptographic checks help diagnose rollover and signing defects while explicit scope prevents unsupported paths from being reported as secure.

Use Cases

DNS Administrator

Diagnose KSK rollover failures

A scheduled KSK rotation has produced SERVFAILs from validating resolvers. The cryptographic verification surfaces the exact mismatch: the published DS digest doesn't correspond to any current DNSKEY, with the *correct* digest computed and returned in the response so it can be republished at the registrar.

Reduces MTTR on the most common DNSSEC outage from "your zone is bogus, debug it" to "publish this exact DS at the registrar."

Security Auditor

Compliance evidence with cryptographic proof

SOC 2 / ISO 27001 evidence requires verifiable DNSSEC posture. The endpoint returns per-DS digest checks (RFC 4034 §5.1.4) and per-RRSIG signature verification for RSA-SHA256/512, ECDSA P-256/P-384, and Ed25519 — the actual math, not just "the resolver said it was OK."

Audit reports can show the cryptographic verification was performed locally rather than trusting an upstream resolver's AD bit.

DevOps Engineer

Pre-migration DNSSEC validation

Before migrating DNS to a new provider, capture a baseline of DS-digest-verified, RRSIG-verified state. After the cut-over, re-run; any change in `ds_digest_verified` or `rrsig_signatures_verified` indicates a replication or signing issue at the new provider.

Catches DNSSEC breakage immediately at migration time rather than 24 hours later when validators start rejecting the zone.

SRE

RRSIG expiry monitoring

Schedule the endpoint daily. Alert when any RRSIG's `is_expiring_soon` flag turns true (signature within 7 days of expiration). Re-sign before validators start treating the zone as bogus.

Prevents the self-inflicted DNSSEC outage that happens when zone-signing automation silently fails.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to validate DNSSEC forExample: cloudflare.com
chainquerybooleanOptionalVerify the DNSSEC chain toward the root. Default true; chain=false skips this additional verification.Example: trueOptions: true, false

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
validation_scopestringSupported proof scope and explicit local alias/negative-proof limitations.
completebooleanFalse when required discovery, lookups, supported crypto or requested-name proof is incomplete.
domainstringThe queried domain
statusstringsecure for completed supported chain/data verification; insecure for resolver-authenticated unsigned delegation; bogus for applicable authentication failure; indeterminate for unavailable/unsupported proof.
has_dnssecbooleanWhether DNSSEC records are present
has_valid_chainbooleanWhether the DNSKEY chain authenticated. Inspect overall status/data_rrset_check for requested-name coverage.
resolver_validatedbooleanAD bit returned by Cloudflare's recursive resolver (third-party validation indicator; distinct from our own cryptographic verification)
keysarrayDNSKEY records with key_tag, algorithm, KSK/ZSK flags, and security status
ds_recordsarrayDS records at parent zone with key_tag, algorithm, digest_type, and is_secure
rrsig_recordsarrayRRSIG signatures with type covered, expiration, inception, is_expired, is_not_yet_valid, is_expiring_soon, and days_until_expiry
ds_digest_verifiedbooleanTrue iff at least one DS record's digest matches the SHA-256/384 we computed over canonical owner-name + DNSKEY RDATA (RFC 4034 §5.1.4). Null when no DS or no DNSKEY is present.
ds_digest_checksarrayPer-DS detail: ds_key_tag, ds_digest_type, ds_digest_published, matched_dnskey_key_tag, digest_computed, matches, error. When matches=false, the published DS does not correspond to any current DNSKEY — the most common DNSSEC misconfiguration.
rrsig_signatures_verifiedboolean|nullWhether at least one eligible current diagnostic DNSKEY signature verifies; this alone does not authenticate its signer or establish root trust.
rrsig_signature_checksarrayPer-RRSIG detail: type_covered, algorithm, key_tag, signer_name, verified, reason. Algorithms supported: RSA-SHA256/512 (RFC 5702), ECDSA P-256/P-384 (RFC 6605), Ed25519 (RFC 8080).
issuesarrayConfiguration findings (weak algorithm, expired RRSIG, DS-DNSKEY mismatch, orphaned RRSIG, revoked key)
recommendationsarrayDiagnostic remediation guidance; use authenticated chain outcomes before changing keys or parent DS.
data_rrset_checkobject|nullCryptographic verification of an observed data RRset when available.
chain_to_rootobject|nullChain-to-root validation details when chain=true; inspect its status and limitations.

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/dnssec?domain=cloudflare.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/dns/dnssec?domain=cloudflare.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/dnssec?domain=cloudflare.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full DNSSEC Check guide

Learn the concepts, choose a practical workflow, and interpret the observations from DNSSEC Check 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 DNSSEC Check endpoint live in the playground.

    DNSSEC Check API Reference | EdgeDNS