---
title: DNS Lookup API
slug: dns-lookup
url: https://apyhub.com/dosvak/service/dns-lookup
provider: Dosvak LLC
categories: [Developer Tools]
tags: [dns, dns-resolution, domain-lookup, record-lookup, infrastructure]
auth: api_key
---

# DNS Lookup API

Resolve A, AAAA, MX, TXT, NS, CNAME, SOA, PTR, and CAA records for a domain. Returns records, ttl, and any lookup error.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| GET | `` | What it does Resolves DNS records for a domain name and returns the domain, record type, TTL, any e… | 10 |

## About

## What it does
DNS Lookup resolves DNS records for a domain name and returns the record data you asked for. Send a `domain` and, optionally, a `record_type` such as `A`, `AAAA`, `MX`, `TXT`, `NS`, `CNAME`, `SOA`, `PTR`, or `CAA`.

The response includes the queried `domain`, the resolved `record_type`, and any `records` found. When available, it also returns `ttl`. If resolution fails or the record is not present, you may receive an `error` string instead of usable records.

Use DNS Lookup when you need to verify domain configuration, check mail routing, inspect TXT records for SPF or verification tokens, or confirm where a hostname points before provisioning infrastructure. It fits directly into onboarding checks, domain health monitoring, and support workflows where you need the DNS answer, not a full resolver library.

Because the output is simple and typed, it is easy to plug into automation that checks one record type at a time and compares the returned values against expected configuration.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/dns-lookup
