DNS Lookup API

Query DNS records for any domain with our fast, developer-friendly API. Get A, AAAA, MX, NS, TXT, CAA, and SOA records in structured JSON format.

Start for Free
Try it now - no signup required:
curl "https://domscan.net/v1/dns?domain=example.com&type=A"

Example Response

{
  "domain": "example.com",
  "record_type": "A",
  "records": [
    {
      "type": "A",
      "name": "example.com",
      "data": "93.184.216.34",
      "ttl": 3600
    }
  ],
  "status": "success",
  "dnssec_validated": false,
  "query_time_ms": 45,
  "checked_at": "2025-01-05T12:00:00.000Z"
}

Key Features

All Record Types

Query A, AAAA, MX, NS, TXT, CAA, SOA, CNAME, PTR, SRV records.

Fast Responses

Powered by Cloudflare DNS-over-HTTPS for low latency.

Bulk Queries

Use /v1/dns/all to query all common record types at once.

DNSSEC Validation

Know if responses are DNSSEC validated.

TTL Information

Get TTL values for proper caching strategies.

JSON Responses

Structured JSON output ready for any application.

Generous Limits

Start free with 10,000 credits per month.

Free to Start

No signup required, start with 10,000 credits/month.

Frequently Asked Questions

What DNS record types are supported?

We support A, AAAA, NS, MX, TXT, CAA, SOA, CNAME, PTR, and SRV record types. Use the type parameter to specify which record type to query.

How do I query all record types at once?

Use the /v1/dns/all endpoint with just the domain parameter. It queries A, AAAA, NS, MX, TXT, CAA, and SOA records in parallel and returns all results.

Is DNSSEC validation supported?

Yes, the response includes a dnssec_validated field indicating whether the response was validated via DNSSEC.

What does the status field mean?

Status can be "success" (records found), "nxdomain" (domain does not exist), or "error" (query failed).

Start Querying DNS Records

Start for free with 10,000 credits per month. Start checking domains in seconds.

View Full API Documentation