About this endpoint
What it does
Resolves DNS records for a domain name and returns the domain, record type, TTL, any error message, and the list of record values. The record type can be selected with a query parameter and defaults to A.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| domain | String | Yes | The domain name to look up. |
| record_type | ENUM | No | DNS record type to resolve. Allowed values: A, AAAA, MX, TXT, NS, CNAME, SOA, PTR, CAA. Default: A. |
Response
Returns a JSON object with ttl, error, domain, records, and record_type fields. ttl and error may be null; records is an array of strings.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| ttl | Integer | No | The record TTL, or null when not available. |
| error | String | No | An error message, or null when the lookup does not produce one. |
| domain | String | Yes | The domain that was looked up. |
| records | String Array | Yes | The resolved DNS record values. |
| record_type | String | Yes | The record type that was resolved. |