---
title: "Check that at least one record matches the expected value."
method: POST
path: "/v1/dns/check-records-exist"
tags: ["DNS"]
---

# Check that at least one record matches the expected value.

`POST /v1/dns/check-records-exist`

## Request

- Base URL: `https://api.domainee.dev`
- URL: `https://api.domainee.dev/v1/dns/check-records-exist`
- Auth: HTTP bearer

Resolves each name live and reports whether the expected value is among the answers. Use this for records that legitimately have siblings, such as TXT or MX.

## Request body

- object
  - `records` object[], required
    - `address` string, required: The name to resolve.
    - `type` 'a' | 'aaaa' | 'cname' | 'mx' | 'txt' | 'ns' | 'caa', required
    - `match_against` string, required: The value you expect. Compared case-insensitively, trailing dot ignored.

## Response `200`

One result per submitted record, in the order they were sent.

- object
  - `records` object[], required
    - `address` string, required
    - `type` string, required
    - `match_against` string, required
    - `match` boolean, required: Whether the check passed.
    - `actual_values` string[], required: What actually resolved. Empty when the lookup failed.

## Other responses

- `400`: The request body or query failed validation.
- `401`: Missing, malformed, revoked, or expired Bearer token.

---

[API](https://skmtc.dev/domainee/apis/domainee-api.md) · [All operations](https://skmtc.dev/domainee/apis/domainee-api/llms.txt) · [OpenAPI document](https://skmtc.dev/domainee/apis/domainee-api/revisions/756d54434372?raw)
