Skip to main content
POST
/
api
/
ext
/
generic
/
dns
/
dns-record-lookup
Perform DNS record lookup
curl --request POST \
  --url https://app.spotzee.com/api/ext/generic/dns/dns-record-lookup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data hostname=example.com
{
  "status": "success",
  "data": {
    "exists": true,
    "data": {
      "Status": 0,
      "TC": false,
      "RD": true,
      "RA": true,
      "AD": false,
      "CD": false,
      "Question": [
        {
          "name": "<string>",
          "type": 123
        }
      ],
      "Answer": [
        {
          "name": "example.com",
          "type": 1,
          "TTL": 300,
          "data": "192.168.1.1"
        }
      ]
    },
    "error": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
hostname
string
required

Hostname to lookup DNS records for

Example:

"example.com"

type
enum<string>

DNS record type

Available options:
A,
AAAA,
MX,
TXT,
CNAME,
NS,
SOA,
PTR,
SRV,
CAA
Example:

"A"

dnssec_only
boolean

Only return DNSSEC validated results

Example:

"false"

validate_dnssec
boolean

Validate DNSSEC signatures

Example:

"false"

Response

Successfully retrieved DNS records

status
enum<string>
required

Indicates successful operation

Available options:
success
data
object
required