NSLookup.io DNS API

DNS record lookups, propagation checks, and health reports

GitHub OpenAPI

Operations 6

GET /api/v1/records Look up common DNS records #
GET /api/v1/records/other Look up a specific DNS record type #
POST /api/v1/records/webservers Get IP addresses for a domain #
POST /api/v1/propagation Check DNS propagation across global servers #
GET /api/v1/dns-health/{domain} Run a DNS health audit #
GET /api/v1/dns-health/{domain}/og-image Generate OG image for DNS health report #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nslookup-io:nslookup-io-dns-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nslookup-io-dns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NSLookup.io DNS API
  description: 'Public API for DNS lookups, DNS health reports, SSL certificate checks, security scanning, GEO (AI readiness) scoring, and domain intelligence.


    Have questions or feedback? Contact us or email hello@nslookup.io.


    ## Rate Limits


    | API | Limit | Per |

    |-----|-------|-----|

    | DNS Lookup, Propagation & Health | 30 requests/min | IP |

    | SSL Certificate, BIMI/VMC, Uptime, GEO | 100 requests/min | IP |

    | Security Scan | 5 requests/min, 20/hour | IP |


    ## MCP Integration


    This API powers the @nslookup-io/mcp-server (11 tools) for use with AI assistants like Claude, ChatGPT, Cursor, and more.


    ```bash

    claude mcp add nslookup --scope user -- npx -y @nslookup-io/mcp-server

    ```'
  version: 1.3.0
  contact:
    name: NSLookup.io
    url: https://nslookup.io
servers:
- url: https://www.nslookup.io
  description: Production
tags:
- name: DNS
  description: DNS record lookups, propagation checks, and health reports
paths:
  /api/v1/records:
    get:
      operationId: dnsLookup
      tags:
      - DNS
      summary: Look up common DNS records
      description: Returns A, AAAA, NS, MX, TXT, CNAME, and SOA records for a domain in a single request.
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
          example: github.com
        description: Domain name to look up
      - name: server
        in: query
        required: false
        schema:
          type: string
          default: cloudflare
          enum:
          - cloudflare
          - cloudflare2
          - google
          - quad9
          - opendns
          - authoritative
          - southafrica
          - australia
          - india
          - thenetherlands
          - canada
          - usa
          - brazil
          - ukraine
          - russia
        description: DNS server to query. Use `authoritative` for the domain's own nameservers.
      responses:
        '200':
          description: DNS records for the domain
          content:
            application/json:
              schema:
                type: object
                properties:
                  punycodeDomain:
                    type: string
                    example: github.com.
                  unicodeDomain:
                    type: string
                    example: github.com.
                  records:
                    type: object
                    description: Record types (a, aaaa, ns, mx, txt, cname, soa) each containing query and response
        '400':
          description: Invalid domain format
        '429':
          description: Rate limit exceeded (30 req/min)
        '504':
          description: DNS query timeout
  /api/v1/records/other:
    get:
      operationId: dnsRecord
      tags:
      - DNS
      summary: Look up a specific DNS record type
      description: 'Query any of the 53 supported DNS record types for a domain.


        For PTR lookups, pass an IP address as the domain parameter.


        For SPF lookups, returns parsed SPF data in addition to the raw TXT record.'
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
          example: github.com
        description: Domain name (or IP address for PTR lookups)
      - name: type
        in: query
        required: true
        schema:
          type: string
          example: MX
          enum:
          - A
          - AAAA
          - AFSDB
          - APL
          - AXFR
          - CAA
          - CDNSKEY
          - CDS
          - CERT
          - CNAME
          - CSYNC
          - DHCID
          - DLV
          - DNAME
          - DNSKEY
          - DS
          - EUI48
          - EUI64
          - HINFO
          - HIP
          - HTTPS
          - IPSECKEY
          - IXFR
          - KEY
          - KX
          - LOC
          - MX
          - NAPTR
          - NS
          - NSEC
          - NSEC3
          - NSEC3PARAM
          - NXT
          - OPENPGPKEY
          - OPT
          - PTR
          - RP
          - RRSIG
          - SIG
          - SMIMEA
          - SOA
          - SPF
          - SRV
          - SSHFP
          - SVCB
          - TA
          - TKEY
          - TLSA
          - TSIG
          - TXT
          - URI
          - ZONEMD
        description: DNS record type
      - name: server
        in: query
        required: false
        schema:
          type: string
          default: cloudflare
          enum:
          - cloudflare
          - cloudflare2
          - google
          - quad9
          - opendns
          - authoritative
          - southafrica
          - australia
          - india
          - thenetherlands
          - canada
          - usa
          - brazil
          - ukraine
          - russia
        description: DNS server to query
      responses:
        '200':
          description: DNS record result
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid domain or record type
        '429':
          description: Rate limit exceeded
        '504':
          description: DNS query timeout
  /api/v1/records/webservers:
    post:
      operationId: webservers
      tags:
      - DNS
      summary: Get IP addresses for a domain
      description: Returns both IPv4 (A) and IPv6 (AAAA) records along with punycode/unicode domain representations.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - domain
              properties:
                domain:
                  type: string
                  example: github.com
                  description: Domain name
      responses:
        '200':
          description: IP addresses
          content:
            application/json:
              schema:
                type: object
                properties:
                  punycodeDomain:
                    type: string
                    example: github.com.
                  unicodeDomain:
                    type: string
                    example: github.com.
                  a:
                    type: object
                    description: IPv4 (A) record result
                  aaaa:
                    type: object
                    description: IPv6 (AAAA) record result
  /api/v1/propagation:
    post:
      operationId: dnsPropagation
      tags:
      - DNS
      summary: Check DNS propagation across global servers
      description: 'Checks DNS propagation across 18+ global DNS servers including:

        - **Global resolvers:** Cloudflare, Google, Quad9, OpenDNS, CleanBrowsing, AdGuard, NextDNS

        - **Regional servers:** South Africa, Australia, India, Netherlands, Canada, USA, Brazil, Ukraine, Russia

        - **Authoritative nameservers:** Auto-discovered from the domain''s NS records'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - domain
              - recordType
              properties:
                domain:
                  type: string
                  example: github.com
                  description: Domain name
                recordType:
                  type: string
                  example: A
                  enum:
                  - A
                  - AAAA
                  - AFSDB
                  - APL
                  - AXFR
                  - CAA
                  - CDNSKEY
                  - CDS
                  - CERT
                  - CNAME
                  - CSYNC
                  - DHCID
                  - DLV
                  - DNAME
                  - DNSKEY
                  - DS
                  - EUI48
                  - EUI64
                  - HINFO
                  - HIP
                  - HTTPS
                  - IPSECKEY
                  - IXFR
                  - KEY
                  - KX
                  - LOC
                  - MX
                  - NAPTR
                  - NS
                  - NSEC
                  - NSEC3
                  - NSEC3PARAM
                  - NXT
                  - OPENPGPKEY
                  - OPT
                  - PTR
                  - RP
                  - RRSIG
                  - SIG
                  - SMIMEA
                  - SOA
                  - SPF
                  - SRV
                  - SSHFP
                  - SVCB
                  - TA
                  - TKEY
                  - TLSA
                  - TSIG
                  - TXT
                  - URI
                  - ZONEMD
                  description: DNS record type to check propagation for
      responses:
        '200':
          description: Propagation results from all servers
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    description: Array of results from each DNS server
                    items:
                      type: object
                      properties:
                        success:
                          type: boolean
                        queryLocation:
                          type: string
                        queryTarget:
                          type: string
                        server:
                          type: object
                          properties:
                            ip:
                              type: string
                            domain:
                              type: string
                        answer:
                          type: array
                          items:
                            type: object
        '429':
          description: Rate limit exceeded
  /api/v1/dns-health/{domain}:
    get:
      operationId: dnsHealth
      tags:
      - DNS
      summary: Run a DNS health audit
      description: 'Comprehensive DNS infrastructure audit with 39 checks across 7 categories:


        - **DNSSEC** — chain of trust, DNSKEY/DS records, validation status, algorithms, NSEC mode

        - **MX & Email** — MX resolution, PTR match, redundancy, IP diversity, MTA-STS enforcement

        - **DNS Hygiene** — duplicate TXT, conflicting SPF, wildcard MX/TXT, apex CNAME

        - **TTL & SOA** — TTL ranges for NS/MX/A/AAAA, SOA values, consistency

        - **Nameservers** — minimum 2 NS, IP diversity, ASN diversity, lame delegation, latency, EDNS0

        - **CAA** — record presence, issuewild restrictions, iodef reporting

        - **Operations** — abuse mailbox, security.txt


        Returns a severity-weighted overall score (0–100) plus per-category scores. Critical checks (10 pts) weigh more than warning (5 pts) and info (2 pts).'
      parameters:
      - name: domain
        in: path
        required: true
        schema:
          type: string
          example: cloudflare.com
        description: Domain name to audit
      responses:
        '200':
          description: DNS health report
          content:
            application/json:
              example:
                domain: cloudflare.com
                score: 90
                checkedAt: '2026-04-02T13:30:29.270Z'
                categories:
                  dnssec:
                    name: DNSSEC
                    score: 100
                    checks:
                    - key: enabled_on_zone
                      label: DNSSEC enabled on zone
                      pass: true
                      value: true
                      severity: critical
              schema:
                type: object
                properties:
                  domain:
                    type: string
                    example: cloudflare.com
                  score:
                    type: integer
                    description: Overall severity-weighted score (0–100)
                    example: 90
                  checkedAt:
                    type: string
                    format: date-time
                  categories:
                    type: object
                    description: '7 categories: dnssec, mx, hygiene, ttl, nsConfig, caa, operations'
                    additionalProperties:
                      type: object
                      properties:
                        name:
                          type: string
                        score:
                          type: integer
                        checks:
                          type: array
                          items:
                            type: object
                            properties:
                              key:
                                type: string
                              label:
                                type: string
                              pass:
                                type: boolean
                                nullable: true
                              value: {}
                              severity:
                                type: string
                                enum:
                                - critical
                                - warning
                                - info
        '429':
          description: Rate limit exceeded
  /api/v1/dns-health/{domain}/og-image:
    get:
      operationId: dnsHealthOgImage
      tags:
      - DNS
      summary: Generate OG image for DNS health report
      description: Returns a 1200×630 PNG image showing the domain's DNS health score circle, label, and branding. Used as `og:image` for social media sharing previews. Cached for 1 hour.
      parameters:
      - name: domain
        in: path
        required: true
        schema:
          type: string
          example: cloudflare.com
        description: Domain name
      responses:
        '200':
          description: PNG image (1200×630)
          content:
            image/png:
              schema:
                type: string
                format: binary