Skip to content

Commit 0c22436

Browse files
authored
Update changelog entry for account-level DNS analytics release (#23221)
* Remove "limit: 10" to truly retrieve all matching queries * Adjust description and limit + indentation of example queries
1 parent f350154 commit 0c22436

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

src/content/changelog/dns/2025-06-23-account-level-dns-analytics-api.mdx

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,29 @@ Authoritative DNS analytics are now available on the **account level** via the [
88

99
This allows users to query DNS analytics across multiple zones in their account, by using the `accounts` filter.
1010

11-
Here is an example to retrieve all DNS queries across all zones in an account that resulted in an `NXDOMAIN` response over a given time frame. Please replace `a30f822fcd7c401984bf85d8f2a5111c` with your actual account ID.
11+
Here is an example to retrieve the most recent DNS queries across all zones in your account that resulted in an `NXDOMAIN` response over a given time frame. Please replace `a30f822fcd7c401984bf85d8f2a5111c` with your actual account ID.
1212

1313
```graphql graphql-api-explorer title="GraphQL example for account-level DNS analytics"
14-
query Viewer {
15-
viewer {
16-
accounts(filter: { accountTag: "a30f822fcd7c401984bf85d8f2a5111c" }) {
17-
dnsAnalyticsAdaptive(
18-
limit: 10
19-
filter: { date_geq: "2025-06-16", responseCode: "NXDOMAIN", date_leq: "2025-06-18" }
20-
orderBy: [datetime_DESC]
21-
) {
22-
zoneTag
23-
queryName
24-
responseCode
25-
queryType
26-
datetime
27-
}
28-
}
29-
}
14+
query GetLatestNXDOMAINResponses {
15+
viewer {
16+
accounts(filter: { accountTag: "a30f822fcd7c401984bf85d8f2a5111c" }) {
17+
dnsAnalyticsAdaptive(
18+
filter: {
19+
date_geq: "2025-06-16",
20+
date_leq: "2025-06-18",
21+
responseCode: "NXDOMAIN"
22+
}
23+
limit: 10000
24+
orderBy: [datetime_DESC]
25+
) {
26+
zoneTag
27+
queryName
28+
responseCode
29+
queryType
30+
datetime
31+
}
32+
}
33+
}
3034
}
3135
```
3236

0 commit comments

Comments
 (0)