DNS Analytics: Dashboard Panels, GraphQL API, and Account Queries
How to read authoritative and DNS Firewall query analytics in the dashboard and GraphQL, including account-level reports and EU data residency.
This page summarises Cloudflare documentation on DNS analytics: where query metrics appear in the dashboard, how GraphQL schemas differ, and how account-level reporting fits multi-zone operations. DNS query volume is not capped on Free, Pro, or Business plans (Enterprise pricing uses monthly query counts as an input); record counts are a separate limit documented under DNS records quota.
DNS analytics sources: which product answers which questions
Section titled “DNS analytics sources: which product answers which questions”When you use Cloudflare DNS, you can access data about DNS queries through a variety of sources.
When you use Cloudflare DNS, you can access data about DNS queries through a variety of sources.
— Cloudflare, Analytics and logs
Authoritative DNS analytics evaluate queries to a zone you host on Cloudflare. DNS Firewall analytics evaluate queries proxied to your upstream nameservers (Enterprise add-on). Internal DNS adds GraphQL fields for private-name resolution. Pick the dashboard or API path that matches the traffic you care about; mixing firewall panels with zone authoritative panels compares different query paths.
| Path | Scope | Typical question |
|---|---|---|
| Zone Analytics | One authoritative zone | “Who queried www.example.com and from which data centers?” |
| DNS Firewall Analytics | Account clusters | “Cache hit ratio and upstream response time for our nameserver fleet?” |
GraphQL (accounts or zones filter) |
Zone, multi-zone, or account | “Export the last 10,000 NXDOMAIN rows across all zones.” |
| Internal DNS analytics | Internal zones | “Which internal view and fallback strategy applied?” |
Authoritative DNS analytics dashboard: panels and filters
Section titled “Authoritative DNS analytics dashboard: panels and filters”DNS analytics allow you to evaluate data about DNS queries to your zone. You can use the dashboard to get insights quickly based on a predefined set of dimensions, or use the API to have access to all fields available in the GraphQL DNS analytics schemas.
For a quick summary, open your zone in the Cloudflare dashboard and go to Analytics (see Analytics and logs). The filters and time frame at the top of the page apply to all panels below.
Query overview panel: volume and dimensions over time
Section titled “Query overview panel: volume and dimensions over time”The Query overview panel shows the number of queries and their distribution over time, segmented by available dimensions. The graph displays the top five values; you can change dimensions via the tabs above the graph and Filter or Exclude values from the hover menu.
Query statistics panel: totals, QPS, and processing time
Section titled “Query statistics panel: totals, QPS, and processing time”Query statistics reports Total queries, Average queries per second, and Average processing time (milliseconds). For flattened CNAME records, average processing time includes upstream queries.
Do not treat dashboard processing time as user-perceived DNS latency; it is time handled on Cloudflare’s authoritative path for the selected filters.
DNS queries by data center and queries by source
Section titled “DNS queries by data center and queries by source”DNS queries by data center maps which Cloudflare data centers answered queries in the period, with a top-ten list and the same filter/exclude affordances. Queries by source breaks down the top five, ten, or fifteen results (your choice) grouped by available dimensions.
GraphQL DNS analytics: dnsAnalyticsAdaptive vs dnsAnalyticsAdaptiveGroups
Section titled “GraphQL DNS analytics: dnsAnalyticsAdaptive vs dnsAnalyticsAdaptiveGroups”For more detailed metrics, use the GraphQL API. Cloudflare documents two DNS analytics schemas:
dnsAnalyticsAdaptive: individual DNS queries (row-level).dnsAnalyticsAdaptiveGroups: aggregate reports only.
Guidance on filters and zone traversal lives in Filtering (for example zones(filter: { zoneTag: "…" }) and zoneTag_in).
Zone-level vs account-level GraphQL queries
Section titled “Zone-level vs account-level GraphQL queries”When using GraphQL, you also have the option to get data for DNS queries across all zones within a given Cloudflare account.
Authoritative DNS analytics are now available on the account level via the Cloudflare GraphQL Analytics API.
This allows users to query DNS analytics across multiple zones in their account, by using the accounts filter.
— Cloudflare, Account-level DNS analytics now available via GraphQL Analytics API
Use viewer.accounts(filter: { accountTag: "YOUR_ACCOUNT_ID" }) instead of zones when the question spans every zone in the account (incident triage, audit of NXDOMAIN noise, portfolio-wide counts). Replace the example accountTag in Cloudflare’s sample with your real account ID.
Example — recent NXDOMAIN rows account-wide (from Analytics and logs):
query GetLastNXDOMAINResponses { viewer { accounts(filter: { accountTag: "83a4527361bcdec24566fd7f837b6de5" }) { dnsAnalyticsAdaptive( limit: 10000 filter: { date_geq: "2025-06-16", responseCode: "NXDOMAIN", date_leq: "2025-06-18" } orderBy: [datetime_DESC] ) { zoneTag queryName responseCode queryType datetime } } }}Example — total query count for a date range (aggregated via dnsAnalyticsAdaptiveGroups):
query GetTotalDNSQueryCount { viewer { accounts(filter: { accountTag: "83a4527361bcdec24566fd7f837b6de5" }) { dnsAnalyticsAdaptiveGroups( filter: { date_geq: "2025-05-01" date_leq: "2025-05-30" } limit: 1 ) { count } } }}Choose adaptive when you need query names and codes; choose adaptiveGroups when a single count or grouped metric is enough. Respect limit and date filters to avoid oversized responses.
Internal DNS GraphQL fields
Section titled “Internal DNS GraphQL fields”Internal DNS metrics use the same GraphQL entry point with extra fields documented in Internal DNS analytics, including InternalDNSFallbackStrategy, InternalDNSRCode, InternalDNSViewID, and InternalDNSZoneID.
DNS Firewall analytics: dashboard panels and cache metrics
Section titled “DNS Firewall analytics: dashboard panels and cache metrics”DNS Firewall proxies queries to your authoritative nameservers; its analytics describe that proxy path, not the same panels as a single-zone authoritative view (though layout is similar).
DNS Firewall analytics allow you to evaluate data about DNS queries to your account.
— Cloudflare, DNS Firewall analytics
In the dashboard, open the DNS Firewall Analytics page. Shared filter and time controls apply to all panels (DNS Firewall Analytics — now in the Cloudflare dashboard):
| Panel | What it shows |
|---|---|
| Query summary | Query volume over time by dimension |
| Query statistics | Totals, cached / uncached / stale cache, processing or response times |
| DNS queries by data center | Global map and top data centers |
| Top query statistics | Dimensional breakdown; expand/search (up to top 100 items in the UI changelog) |
Dashboard analytics support roughly 62 days of history, unified filters (query name, type, cluster, data center, UDP/TCP, IP version, response code/reason, and more), and one filter set applied across panels (DNS Firewall Analytics UI changelog).
Processing time vs response time on DNS Firewall
Section titled “Processing time vs response time on DNS Firewall”For DNS Firewall, processing time is time to handle a query inside the firewall (cached answers served from Cloudflare). For uncached queries, response time includes fetching answers from upstream nameservers. Both averages and p90 values are shown in milliseconds (DNS Firewall analytics).
Legacy DNS Firewall API reports remain available alongside GraphQL-powered dashboard analytics (DNS Firewall analytics).
Customer Metadata Boundary (EU): where analytics data lives
Section titled “Customer Metadata Boundary (EU): where analytics data lives”Customers with Customer Metadata Boundary (CMB) set to EU can use DNS analytics with metadata stored and queried in the EU:
DNS Analytics is now available for customers with Customer Metadata Boundary (CMB) set to EU. Query your DNS analytics data while keeping metadata stored in the EU region.
— Cloudflare, DNS Analytics for Customer Metadata Boundary set to EU region
Authoritative DNS: select the zone → Analytics. DNS Firewall: DNS Firewall Analytics page (same changelog). Availability is described as all zones on all plans for this CMB analytics update.
Common mistakes when reading DNS analytics
Section titled “Common mistakes when reading DNS analytics”- Comparing authoritative zone analytics with DNS Firewall analytics — They measure different paths (direct authoritative service vs proxied upstream clusters).
- Treating processing time as full resolver-to-user latency — Cloudflare does not see client-to-resolver delay on authoritative analytics; firewall metrics explicitly split cache-local processing from upstream response time.
- Using zone GraphQL when the question is account-wide — Multi-zone
NXDOMAINhunts needaccounts(filter: { accountTag: … }), not per-zone loops (account-level DNS analytics API). - Expecting ANY-query debug data on authoritative DNS — Cloudflare blocks ANY on authoritative DNS because correct answers are often impossible with features like CNAME flattening; this does not apply the same way to DNS Firewall customers (DNS FAQ).
- Ignoring shadowed records when query counts look “wrong” — Delegated subzones can leave records in the UI that Cloudflare will not answer; warnings and API
include_shadow_metadata=truehelp (Shadowed record warnings).
Record quota warnings at 85% usage on the DNS records page reflect either per-zone or per-account limits and are unrelated to query analytics caps (DNS records quota, quota warning changelog).
How to check this on your site
Section titled “How to check this on your site”-
For authoritative DNS, select your zone in the Cloudflare dashboard and open Analytics and logs (Analytics). Confirm all four panels update when you change the time range and a dimension filter.
-
For DNS Firewall, open DNS Firewall analytics (DNS Firewall Analytics) and verify Query statistics shows cached vs uncached split and that filters propagate to every panel (DNS Firewall Analytics UI).
-
Run a small GraphQL query against
dnsAnalyticsAdaptivewith a narrowdate_geq/date_leqwindow and a lowlimit, usingzonesfor one zone oraccountsfor account-level data (Analytics and logs, Filtering). -
If your account uses CMB=EU, confirm you can reach zone Analytics and DNS Firewall Analytics without leaving EU residency requirements (CMB EU changelog).
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are questioning so it can be corrected.