Skip to content
Utilerio
All endpoints

DNS Lookup

GET/api/v1/net/dns-lookup

Look up a domain's A, AAAA, MX, TXT, CNAME and NS records, with TTL and resolver info.

Authentication

Requires an API key in the X-API-Key header.

Try it

GET/api/v1/net/dns-lookup

Parameters

hoststringrequired

Hostname to look up.

typesstringoptional

Comma-separated record types (A,AAAA,MX,TXT,CNAME,NS). Default all.

Request body

{
  "host": "example.com"
}

Response codes

  • 200Success.
  • 400Invalid request — check your body or parameters.
  • 401Missing or invalid API key.
  • 403The API key is not scoped to this endpoint.
  • 429Rate limit exceeded — retry after a short wait.

Language

cURL

Request

curl -X POST https://utilerio.com/api/v1/net/dns-lookup \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host":"example.com"}'

Response

{ "hostname": "example.com", "resolver": "cloudflare-dns.com", "records": [{ "type": "A", "value": "93.184.216.34", "ttl": 3600 }], "issues": {} }