Browser-Based Dns Diagnostics Via Cors-Enabled Json Api
Sources: 1 • Confidence: Medium • Updated: 2026-04-12 10:18
Key takeaways
- Cloudflare's 1.1.1.1 DNS resolver provides a CORS-enabled JSON API.
- Cloudflare's 1.1.1.2 resolver is positioned as blocking malware.
- Cloudflare's 1.1.1.3 resolver is positioned as blocking both malware and adult content.
- The author used Claude Code to build a UI that runs DNS queries against Cloudflare's 1.1.1.1, 1.1.1.2, and 1.1.1.3 resolvers.
Sections
Browser-Based Dns Diagnostics Via Cors-Enabled Json Api
- Cloudflare's 1.1.1.1 DNS resolver provides a CORS-enabled JSON API.
- The author used Claude Code to build a UI that runs DNS queries against Cloudflare's 1.1.1.1, 1.1.1.2, and 1.1.1.3 resolvers.
Dns-Layer Policy Filtering Through Resolver Selection
- Cloudflare's 1.1.1.2 resolver is positioned as blocking malware.
- Cloudflare's 1.1.1.3 resolver is positioned as blocking both malware and adult content.
Unknowns
- What is the exact URL, request format, and response schema for the CORS-enabled JSON API used for DNS queries?
- What rate limits, quotas, or acceptable-use constraints apply to browser-originated requests to the JSON DNS API?
- How do 1.1.1.2 and 1.1.1.3 represent blocking in responses (for example, special IPs, NXDOMAIN, or other signaling)?
- What is the observed difference in results between the three resolvers for a controlled set of known domains, and how stable are those differences over time?
- Is the referenced UI available for inspection, and does it run entirely client-side without a proxy service?