DNS over HTTPS (DoH) Explained
Query live DNS records from browsers, CI jobs, or sandboxes using Cloudflare and Google JSON DoH APIs.
Exact DNS wire fields: HOST identifies the label, TYPE picks the record format, TTL sets cache duration, TARGET holds the answer.
1. Engineering Breakdown
DNS over HTTPS (RFC 8484) sends DNS queries inside standard port 443 HTTPS requests. It bypasses ISP DNS blocks and lets browser tools like /tools/dns-ssl-checker inspect live records directly.
Common Pitfalls
- Always set
Accept: application/dns-jsonwhen calling Cloudflare’s/dns-queryendpoint, otherwise it expects binary wire-format DNS.
2. Interactive DNS Record Syntax Validator
Edit the record type, host label, or value below to validate syntax and build your CLI command.
3. Exact CLI, curl & MCP JSON-RPC Payloads
Pick your preferred interface below and copy the working payload.
curl -H "accept: application/dns-json" "https://cloudflare-dns.com/dns-query?name=myapp.makes.fyi&type=A"
curl -s "https://dns.google/resolve?name=myapp.makes.fyi&type=TXT"
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_domain",
"arguments": {
"label": "myapp"
}
}
}
Frequently asked questions
What is DNS over HTTPS (DoH)?
Query live DNS records from browsers, CI jobs, or sandboxes using Cloudflare and Google JSON DoH APIs.
How do I automate DNS over HTTPS (DoH) with AgentDomains?
Use the Go CLI snippet above, send a REST curl call, or invoke get_domain on https://mcp.agentdomains.co.
Related DNS & SSL Guides
MCP Streamable HTTP & TLS Requirements
Host your remote MCP server over stateless Streamable HTTP with valid port 443 HTTPS.
Protocols & Toolingdig Command Cheatsheet for Developers
Essential dig commands for debugging A, AAAA, CNAME, TXT, _acme-challenge, NS delegation, and TTLs in seconds.
nslookup vs dig vs DoH
Why dig gives cleaner TTL/authority output than nslookup, and when browser DoH tools beat both.
Cloudflare Edge TLS & HTTPS
See how set_proxy handles TLS 1.3 at the edge and forwards traffic to your origin hostname.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.