---
title: "Get DNS records for an email domain"
method: GET
path: "/email-domains/{id}/dns-records"
tags: ["Email Domains"]
---

# Get DNS records for an email domain

`GET /email-domains/{id}/dns-records`

## Request

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

## Path parameters

- `id` integer, required

## Response `200`

DNS records for the domain

- DnsRecordResponse[]
  - `name` string, required: DNS record name (host)
  - `priority` integer, nullable: Priority (for MX records)
  - `record_type` string, required: Record type: TXT, CNAME, MX
  - `status` 'unknown' | 'verified' | 'pending' | 'failed', required: Verification status: unknown, verified, pending, failed
  - `value` string, required: DNS record value

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Domain not found
- `500`: Internal server error

## Changes

- **2026-01-11** `50604ba8d4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/email-domains/:id/dns-records/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)
