DNS Query API
GET /api/dns with optional L0 cache. Query a domain against a configurable DNS server (IP or DoH). Returns latest resolution only (no history).
Endpoints
GET
/api/dnsQuery: domain (required), dns (optional, default 1.1.1.1). Returns A and AAAA records in one response.
Response example
{
"records": [
{ "name": "example.com", "type": "A", "ttl": 300, "data": "93.184.216.34" },
{ "name": "example.com", "type": "AAAA", "ttl": 300, "data": "2606:2800:220:1:248:1893:25c8:1946" }
],
"domain": "example.com",
"dns": "1.1.1.1"
}Playground
Send requests and view responses.