---
title: "Check that every record for a name equals the expected value."
method: POST
path: "/v1/dns/check-records-match-exactly"
tags: ["DNS"]
---

# Check that every record for a name equals the expected value.

`POST /v1/dns/check-records-match-exactly`

## Request

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

Stricter than `checkDnsRecordsExist`: a stale extra A record fails the check. Use this for records that must be unique, such as a CNAME.

## 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)
