---
title: "fetch dns records"
method: GET
path: "/domain/dns"
tags: ["Domain API"]
---

# fetch dns records

`GET /domain/dns`

## Request

- Base URL: `https://emailapi.netcorecloud.net/v5.1`
- URL: `https://emailapi.netcorecloud.net/v5.1/domain/dns`
- Auth: API key in header `api_key`

API endpoint URL for non-EU customers - https://emailapi.netcorecloud.net/

API endpoint for EU customers - https://apieu.netcorecloud.net/

This API enables you to fetch the DNS records (SPF, DKIM & Custom Envelope) for a domain added in your account. It is mandatory to add these records in your domain's advanced DNS settings to activate your domain.

### What are SPF and DKIM? And why are these are important to have?
**SPF (Sender Policy Framework)** record ascertains ESPs that Pepipost is authorized to send emails using your domain.

**DKIM (Domain Key Identified Mail)** is a method to validate the authenticity of email messages. We send each email with a DKIM signature and ESPs use this signature to verify the authenticity of the email using the DKIM record entered in your domain's DNS settings.

## Query parameters

- `domain` string, required

## Headers

- `api_key` string, required

## Response `200`

Success

- object

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v5.md) - [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/email-api-v5/revisions/7f81d8722ba3?raw)
