---
title: "Lookup DNS A records for a domain"
method: GET
path: "/dns/lookup"
tags: ["DNS"]
---

# Lookup DNS A records for a domain

`GET /dns/lookup`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/dns/lookup`
- Auth: HTTP bearer

## Query parameters

- `domain` string, required

## Response `200`

Successfully retrieved DNS A records

- DnsLookupResponse: Response containing DNS A records
  - `count` integer, required: Number of records found
  - `dns_servers` string[], required: DNS servers used for the lookup
  - `domain` string, required: Domain name that was queried
  - `records` string[], required: List of A record IP addresses

## Other responses

- `400`: Invalid domain name or lookup failed
- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-09-07** `943f7f929e7c`: 3 info
  - the endpoint scheme security `bearer_auth` was added to the API
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
- **2026-09-07** `f7404eb7ac98`: 3 info
  - the endpoint scheme security `bearer_auth` was removed from the API
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`
- **2026-08-25** `b2e90f1c651f`: 3 info
  - the endpoint scheme security `bearer_auth` was added to the API
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/dns/lookup/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
