Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

DNSSEC Validation, Trust Anchor Sentinels, and DoH JSON Formatting

How Cloudflare 1.1.1.1 validates DNSSEC, tests root key trust, formats DoH JSON, and reports Extended DNS Error Codes when lookups fail.

This page summarises Cloudflare documentation on the 1.1.1.1 public DNS resolver: DNSSEC validation and supported algorithms, RFC 8509 root key trust anchor sentinels, changes to the DNS-over-HTTPS (DoH) application/dns-json API, and Extended DNS Error Codes (EDE, RFC 8914) when a query fails. If you parse DoH JSON in an application or debug SERVFAIL on 1.1.1.1, these behaviours matter.

DNSSEC validation on 1.1.1.1: what fails and what is supported

Section titled “DNSSEC validation on 1.1.1.1: what fails and what is supported”

1.1.1.1 validates DNSSEC for signed zones. When validation fails, the resolver typically returns SERVFAIL rather than unsigned data. For background on keys and validation, Cloudflare points readers to DNSKEY.

Which DNSSEC signature algorithms does 1.1.1.1 support?

Section titled “Which DNSSEC signature algorithms does 1.1.1.1 support?”

1.1.1.1 supports the algorithms listed in Supported signature algorithms:

  • RSA/SHA-1
  • RSA/SHA-256
  • RSA/SHA-512
  • RSASHA1-NSEC3-SHA1
  • ECDSA Curve P-256 with SHA-256 (ECDSAP256SHA256)
  • ECDSA Curve P-384 with SHA-384 (ECDSAP384SHA384)
  • ED25519

If a zone uses an unsupported DNSKEY algorithm or DS digest type, validation fails; Extended DNS Error Codes 1 and 2 (below) describe those cases in more detail.

ZSK and KSK flags when reading DNSKEY records

Section titled “ZSK and KSK flags when reading DNSKEY records”

When you interpret DNSKEY data (for example in DoH JSON after formatting updates), Validation and keys gives the usual flag values:

Role Flag
Zone Signing Key (ZSK) 256
Key Signing Key (KSK) 257

RFC 8509 root key trust anchor sentinels: check resolver trust before a KSK rollover

Section titled “RFC 8509 root key trust anchor sentinels: check resolver trust before a KSK rollover”

Root key trust anchor sentinels let you learn whether the responding resolver already trusts a given DNSSEC root Key Signing Key (KSK) before a root rollover, without guessing from generic validation behaviour.

1.1.1.1 now supports RFC 8509 root key trust anchor sentinels. They let you check whether the responding resolver trusts a DNSSEC root key ahead of a key rollover.

— Cloudflare, RFC 8509 root key trust anchor sentinel support

How to test KSK-2024 (key tag 38696) against 1.1.1.1

Section titled “How to test KSK-2024 (key tag 38696) against 1.1.1.1”

Cloudflare documents test names under dnstest.dev. On a sentinel-aware resolver that trusts KSK-2024:

Query Expected on 1.1.1.1 when KSK-2024 is trusted
root-key-sentinel-is-ta-38696.dnstest.dev NOERROR with an A answer
root-key-sentinel-not-ta-38696.dnstest.dev SERVFAIL without an answer

With the CD (checking disabled) bit, sentinel processing is bypassed and the underlying A answer is returned even for the not-ta name:

dig @1.1.1.1 root-key-sentinel-is-ta-38696.dnstest.dev. A +noall +comments +answer
dig @1.1.1.1 root-key-sentinel-not-ta-38696.dnstest.dev. A +noall +comments +answer
dig @1.1.1.1 root-key-sentinel-not-ta-38696.dnstest.dev. A +cdflag +noall +comments +answer

The same steps appear in the 1.1.1.1 changelog and consumer services changelog.

DoH JSON (application/dns-json): record display and DNSSEC field formatting

Section titled “DoH JSON (application/dns-json): record display and DNSSEC field formatting”

Clients that call https://cloudflare-dns.com/dns-query with Accept: application/dns-json (as in DNS in Google Sheets) receive JSON whose data fields for some record types and DNSSEC records changed during Cloudflare’s rollout described in Improved DoH JSON formatting for additional record types.

Cloudflare is rolling out updated formatting for the data field in the 1.1.1.1 DoH JSON API (application/dns-json). During the roll out responses may use either the old or new format.

— Cloudflare, Improved DoH JSON formatting for additional record types

Human-readable data for additional record types

Section titled “Human-readable data for additional record types”

Several types that previously used RFC 3597 generic hex encoding (\# <length> <hex>) in the JSON data field now use standard presentation form, for example:

  • CAA: 0 issue "letsencrypt.org"
  • HTTPS / SVCB: 1 . alpn=h3,h2 ipv4hint=192.0.2.1
  • TLSA, SSHFP, NAPTR, RP, IPSECKEY, OPENPGPKEY: presentation formats as in the changelog

Parsers that assumed hex-only data for these types need to accept text presentation.

Numeric DNSSEC algorithm and digest identifiers in JSON

Section titled “Numeric DNSSEC algorithm and digest identifiers in JSON”

DNSSEC-related records in DoH JSON now use numeric algorithm and digest identifiers per RFC 4034, not mnemonic names. This affects RRSIG, DS, CDS, DNSKEY, and CDNSKEY presentation in data.

Record Before (example) After (example)
RRSIG A RSASHA256 2 300 ... A 8 2 300 ...
DS 12345 RSASHA256 SHA-256 aabb... 12345 8 2 aabb...
DNSKEY 257 3 RSASHA256 AwEA... 257 3 8 AwEA...

Examples from Cloudflare include RSASHA256 → 8, ECDSAP256SHA256 → 13, ED25519 → 15, and DS digest SHA-256 → 2 (changelog).

HINFO and multi-string TXT-like quoting in JSON

Section titled “HINFO and multi-string TXT-like quoting in JSON”

For HINFO, individual character-strings are quoted so values containing spaces are unambiguous, e.g. "data": "\"Intel Xeon\" \"Linux\"" instead of a single unquoted string (1.1.1.1 product changelog). That parallels DNS wire behaviour: per Cloudflare DNS FAQ, a TXT record may appear as "first part" "second part" because RFC 1035 splits long TXT into multiple 255-octet strings—receiving apps concatenate them.

Extended DNS Error Codes (EDE): why dig @1.1.1.1 failed

Section titled “Extended DNS Error Codes (EDE): why dig @1.1.1.1 failed”

Standard DNS response codes (such as SERVFAIL) often do not explain why validation or resolution failed. Extended DNS Error Codes (RFC 8914) attach a specific code and text in the OPT pseudo-section; 1.1.1.1 supports them.

Extended DNS Error Codes is a method to return additional information about the cause of DNS errors. When a DNS query fails, the standard response code (such as SERVFAIL) often does not explain why it failed.

— Cloudflare, Extended DNS error codes

Run a query such as dig @1.1.1.1 example.com A and read EDE: lines in the output when present.

Code Name Typical meaning on 1.1.1.1 Next step (from Cloudflare)
1 Unsupported DNSKEY Algorithm Validation failed; unsupported key size or algorithm Confirm zone algorithms match supported algorithms
2 Unsupported DS Digest Type No supported DS digest at delegation Add a supported DS at the registrar
6 DNSSEC Bogus Invalid signatures or proof of non-existence Fix DNSSEC signing / duplicates (e.g. duplicate CNAME)
7 Signature Expired RRSIG past expiration Re-sign zone with valid signatures
8 Signature Not Yet Valid RRSIG before inception Fix clock / signing schedule
9 DNSKEY Missing No SEP DNSKEY matching DS Align zone keys with DS set or update DS
10 RRSIGs Missing Could not get RRSIGs to verify Check DNS config; may indicate rollover or stripped sigs
11 No Zone Key Bit Set SEP DNSKEY missing Zone Key flag Fix DNSSEC key flags
12 NSEC Missing Invalid insecure referral proof Ensure signed NSEC/NSEC3
33 Negative Trust Anchor Validation bypassed per RFC 7646 Check Cloudflare status and EDE 33 blog reference in docs

Other documented codes include 3 (Stale Answer), 13 (Cached Error), 22 (No Reachable Authority), 23 (Network Error), and 30 (Invalid Query Type); see the full table in Extended DNS error codes.

API clients: Cloudflare TypeScript SDK DNS record type names

Section titled “API clients: Cloudflare TypeScript SDK DNS record type names”

If you use the Cloudflare TypeScript SDK, DNS Records - Type Renames shorten response interface names from *Record to the type alone—for example RecordResponse.ARecord → RecordResponse.A across 21 record types (SDK changelog). That is unrelated to 1.1.1.1 resolution but affects code that consumes Cloudflare’s DNS API types.

Misconfiguration: do not use 1.1.1.1 as a website origin address

Section titled “Misconfiguration: do not use 1.1.1.1 as a website origin address”

Pointing a Cloudflare-proxied domain’s origin DNS record at 1.1.1.1 triggers edge validation error 1034, not a resolver feature.

Customers who previously pointed their domains to 1.1.1.1 will now encounter a 1034 error. This is due to edge validation checks in Cloudflare’s systems to prevent misconfiguration and potential abuse.

— Cloudflare, Error 1034

Resolution: point records at addresses you control; for placeholder “originless” setups use reserved 100:: (IPv6) or 192.0.2.0 (IPv4) per Error 1034.

  • Parsing DoH JSON as stable: treating application/dns-json as a fixed schema while Cloudflare is still rolling out format changes (changelog).
  • Matching DNSSEC fields by mnemonic: expecting RSASHA256 or SHA-256 in DoH JSON data after the numeric switch (changelog).
  • Ignoring EDE on SERVFAIL: stopping at SERVFAIL without reading EDE: from dig (extended DNS error codes).
  • Using 1.1.1.1 as origin IP: confusing the resolver with a host address (Error 1034).
  • Sentinel names with CD: using +cdflag and misreading the result as trust status (RFC 8509 sentinel support).
  1. Query a domain through 1.1.1.1 with dig @1.1.1.1 yourdomain.example A and note status and any EDE: lines, using Extended DNS error codes to interpret failures.

  2. If you depend on DoH JSON, request application/dns-json from https://cloudflare-dns.com/dns-query and confirm your parser handles both legacy and new data formats described in Improved DoH JSON formatting.

  3. Before a root KSK rollover, run the dnstest.dev sentinel queries against @1.1.1.1 as in RFC 8509 root key trust anchor sentinel support.

  4. For DNSSEC algorithm questions, compare your zone’s algorithms with DNSKEY — Supported signature algorithms.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact wording you are asking about, and we will correct or clarify it.