DNS Lookup
$0.005per calldns.lookupLook up DNS records for a domain
Endpoint
POST /v1/tools/dns.lookup/tasksInput
| Field | Type | Required | Description |
|---|---|---|---|
| domain | string | yes | Domain name to look up |
| record_type | string | no | DNS record type to query. Defaults to ALL |
Output
| Field | Type | Description |
|---|---|---|
| domain | string | |
| records | object | Map of record type to results. Only queried types are present. |
| queried_at | string |
Example
Request
{
"domain": "google.com"
}Response
{
"domain": "google.com",
"records": {
"A": [
"142.250.80.46"
],
"AAAA": [
"2607:f8b0:4004:800::200e"
],
"MX": [
{
"priority": 10,
"exchange": "smtp.google.com"
}
],
"NS": [
"ns1.google.com",
"ns2.google.com"
],
"TXT": [
"v=spf1 include:_spf.google.com ~all"
]
},
"queried_at": "2026-03-07T08:00:00.000Z"
}