DNS Lookup API

Query A, AAAA, MX, NS, TXT and CNAME records for any domain and get clean JSON back, with the same key you use for WHOIS and SSL checks.

Records you can parse

Pick a record type or ask for all of them. Each record comes back with its value and TTL in a predictable format.

  • A, AAAA, MX, NS, TXT and CNAME
  • IP and hosting details
  • Available over REST and MCP
Request
$ curl https://api.domsdk.com/v1/dns?domain=example.com&type=MX \
  -H "Authorization: Bearer YOUR_KEY"
Response 200
{
  "domain": "example.com",
  "type": "MX",
  "records": [{ "priority": 0, "value": ".", "ttl": 86400 }]
}

Try the DNS Lookup API free.

1,000 credits every month, no card needed.

Try it free