DNS Lookup Request
Domain Intelligence and AnalysisHow to call DNS Lookup — the endpoint, the headers it expects, and every request parameter with its type.
Endpoint
POST
https://app.way2api.com/api/v1/domain/dns
Headers
Authorization: Bearer your_api_key_here
Content-Type: application/json
Parameters (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
| domain_name | string | Required | Hostname to resolve, e.g. example.com. A scheme, path or www. prefix is stripped automatically. |
| record_type | string | Optional | Comma-separated record types: A, AAAA, MX, NS, SOA, SPF, TXT, CNAME. Defaults to "all". |
Request Body
{
"domain_name": "google.com",
"record_type": "all"
}
cURL
curl -X POST https://app.way2api.com/api/v1/domain/dns \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain_name":"google.com","record_type":"all"}'
🚀 Send Request