DNS

Lookup DNS A records for a domain

get/dns/lookup

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/dns/lookup
  • Auth: HTTP bearer

Query parameters

domainstring required

Domain name to lookup

Response

Successfully retrieved DNS A records

countinteger required

Number of records found

dns_serversstring[] required

DNS servers used for the lookup

domainstring required

Domain name that was queried

recordsstring[] required

List of A record IP addresses

Example response

{
  "count": 1,
  "dns_servers": [
    "8.8.8.8",
    "8.8.4.4"
  ],
  "domain": "example.com",
  "records": [
    "93.184.216.34"
  ]
}

Changes

No recorded changes to this operation across all 50 revisions of this API.