> ## Documentation Index
> Fetch the complete documentation index at: https://spotzee.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Perform DNS record lookup

> Performs comprehensive DNS record lookups for a hostname. Supports all major record types (A, AAAA, MX, TXT, CNAME, NS, SOA, PTR, SRV, CAA) with optional DNSSEC validation. Results are cached for performance optimization.



## OpenAPI

````yaml https://apix.spotzee.com/api/ext/openapi.json post /generic/dns/dns-record-lookup
openapi: 3.1.0
info:
  title: Spotzee API
  version: '2026-04-28'
  description: >-
    Comprehensive API for email services, DNS management, AI tools, and
    marketing features.
servers:
  - url: https://apix.spotzee.com/api/ext
    description: >-
      Extended API surface — sender-side utilities (DNS, AI, deliverability,
      generators).
security:
  - BearerAuth: []
tags:
  - name: AI
    description: >-
      Sender-side AI utilities — generate copy, score subject lines, and draft
      message variants tailored to a contact or campaign brief.
  - name: Data
    description: >-
      Realistic-looking sample data for development and load testing — contacts,
      events, and segments shaped like production records without exposing real
      customer data.
  - name: DNS
    description: >-
      Inspect a domain’s sender posture — SPF, DKIM, DMARC, MX, and reverse-DNS
      records — and surface the gaps that put deliverability at risk.
  - name: Email
    description: >-
      Send-side validation and inspection — verify addresses, fingerprint MTAs,
      decode bounces, and check inbox-placement signals before a campaign goes
      out.
  - name: SMS
    description: Mobile-number validation and carrier lookup for SMS campaigns.
  - name: Text
    description: >-
      Text-quality utilities — spam-score grading, readability metrics, and
      subject-line scoring against deliverability heuristics.
paths:
  /generic/dns/dns-record-lookup:
    post:
      tags:
        - DNS
      summary: Perform DNS record lookup
      description: >-
        Performs comprehensive DNS record lookups for a hostname. Supports all
        major record types (A, AAAA, MX, TXT, CNAME, NS, SOA, PTR, SRV, CAA)
        with optional DNSSEC validation. Results are cached for performance
        optimization.
      operationId: lookupDnsRecords
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                hostname:
                  type: string
                  description: Hostname to lookup DNS records for
                  example: example.com
                type:
                  type: string
                  description: DNS record type
                  enum:
                    - A
                    - AAAA
                    - MX
                    - TXT
                    - CNAME
                    - NS
                    - SOA
                    - PTR
                    - SRV
                    - CAA
                  example: A
                dnssec_only:
                  type: boolean
                  description: Only return DNSSEC validated results
                  example: 'false'
                validate_dnssec:
                  type: boolean
                  description: Validate DNSSEC signatures
                  example: 'false'
              required:
                - hostname
      responses:
        '200':
          description: Successfully retrieved DNS records
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                    description: Indicates successful operation
                  data:
                    type: object
                    properties:
                      exists:
                        type: boolean
                        description: Whether DNS records exist
                        example: true
                      data:
                        type: object
                        properties:
                          Status:
                            type: number
                            description: DNS query status code (0 = NOERROR)
                            example: 0
                          TC:
                            type: boolean
                            description: Truncated response flag
                            example: false
                          RD:
                            type: boolean
                            description: Recursion desired flag
                            example: true
                          RA:
                            type: boolean
                            description: Recursion available flag
                            example: true
                          AD:
                            type: boolean
                            description: Authenticated data flag (DNSSEC)
                            example: false
                          CD:
                            type: boolean
                            description: Checking disabled flag (DNSSEC)
                            example: false
                          Question:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                type:
                                  type: number
                              required:
                                - name
                                - type
                            description: DNS query questions
                          Answer:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                  description: Domain name
                                  example: example.com
                                type:
                                  type: number
                                  description: DNS record type numeric code
                                  example: 1
                                TTL:
                                  type: number
                                  description: Time to live in seconds
                                  example: 300
                                data:
                                  type: string
                                  description: >-
                                    Record data (IP address, hostname, text,
                                    etc.)
                                  example: 192.168.1.1
                              required:
                                - name
                                - type
                                - TTL
                                - data
                            description: DNS answer records
                        required:
                          - Status
                          - TC
                          - RD
                          - RA
                          - AD
                          - CD
                          - Question
                      error:
                        type: string
                        description: Error message if DNS query failed
                    required:
                      - exists
                required:
                  - status
                  - data
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '402':
          description: Payment Required - Quota exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '504':
          description: Gateway timeout - Request took too long
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Bearer token authentication. Use format: Bearer YOUR_API_KEY'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.