# DNSSEC Verdicts (/docs/reference/dnssec/verdicts)

The DNSSEC API validates a domain the way a validating resolver does: it walks the chain of trust from the DNS root to the zone that answers for the name, checks every DS record, key and signature on the way, and tells you whether the answer is secure, not signed, or broken. The default response is a short verdict written for the domain's owner; `verbose=true` returns the whole analysis.

> Every verdict is HTTP `200`, a broken domain included: read `results[0].status`. Errors are only for bad input, a `400` that isn't billed, and our own failures. Each lookup costs one credit, or two with `allNameservers=true`, whatever the verdict. Results are cached for up to 10 minutes (an `indeterminate` one never is); `cached` says when a response came from the cache.

The [DNSSEC API](/docs/reference/dnssec) reference page describes each field of the verdict, including `status` and `answer`.

## Recipes

```javascript title="Is this domain signed?"
const res = await fetch('https://api.dns.tools/v1/dnssec?name=example.com', {
  headers: { 'X-API-Key': 'YOUR-API-KEY' },
});
const [result] = (await res.json()).results;

// DNSSEC is on and working
const protectedByDnssec = result.status === 'secure';
// DNSSEC is turned on at the registrar (a DS record exists), working or not
const dnssecEnabled = result.signed;
```

```javascript title="Is DNSSEC broken?"
const [result] = (await res.json()).results;

if (result.status === 'bogus') {
  // validating resolvers refuse to answer: the domain is down for many users
  const { parent, child, cause, fix } = result.brokenAt;
  console.error(parent, '→', child, cause, fix);
} else if (result.status === 'indeterminate') {
  // the check couldn't finish (a nameserver didn't answer): retry later
} else if (result.issues.length > 0) {
  // working, with things to fix before they break it
}
```

### A broken domain: dnssec-failed.org

```json
{
  "status": "bogus",
  "answer": "exists",
  "signed": true,
  "zone": "dnssec-failed.org",
  "summary": "Resolvers that validate DNSSEC, such as Google, Cloudflare, Quad9 and many ISPs, refuse to answer for dnssec-failed.org, so many visitors can't reach it.",
  "brokenAt": {
    "parent": "org",
    "child": "dnssec-failed.org",
    "reason": "ds-no-matching-dnskey",
    "cause": "The DS record at your registrar points to a key (42069) that dnssec-failed.org no longer publishes.",
    "fix": "Update the DS record at your registrar to match your current key, or remove it to turn DNSSEC off while you fix it."
  }
}
```