---
title: "Look up DNS records"
method: POST
path: "/tools/dns-lookup"
tags: ["Tool"]
---

# Look up DNS records

`POST /tools/dns-lookup`

## Request

- Base URL: `https://api.palisade.email`
- URL: `https://api.palisade.email/tools/dns-lookup`
- Auth: one of:
  - none
  - HTTP bearer
  - HTTP basic

Read a host's TXT, MX, NS, A and CNAME records from live DNS in one call. Record types that resolve to nothing are simply absent from the array rather than reported as an error. Authentication is optional.

## Request body

- object
  - `host` string, required: The host to resolve.

## Response `200`

Success

- DnsLookupResult
  - `records` object[], required
    - `type` 'TXT' | 'MX' | 'NS' | 'A' | 'CNAME', required
    - `value` string, required
    - `priority` number: MX preference. Only present on MX records.

---

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