Skip to content
DNS Record Generator

DNS Record Generator

Generate SPF, DKIM and DMARC email DNS records online and verify them directly in your browser.

浏览器生成的密钥适合测试使用。

How to Use

Generate Records

  1. Enter your sending domain and outbound IP address
  2. Optionally customize DKIM selector (default mail) and DMARC policy (reject recommended)
  3. Click “Generate DNS Records” — the tool generates a complete set of email DNS records
  4. Click “Copy All Records” to paste into your DNS provider
  5. Save the DKIM private key (download or copy)

Verify Records

  1. Switch to the “Verify Records” tab
  2. Enter the configured domain, outbound IP and DKIM selector
  3. Click “Check DNS Configuration”
  4. The tool performs 7 real-time checks via Google DNS and reports PASS/FAIL for each

Generated Records

Each domain produces 6 DNS records:

TypeHostnameDescription
A<domain>Bare domain resolves to outbound IP
Amail.<domain>Mail subdomain resolves to outbound IP
MX<domain>Mail exchange points to mail.<domain>
TXT<domain>SPF allowlist
TXT<selector>._domainkey.<domain>DKIM public key
TXT_dmarc.<domain>DMARC policy

Verification Checks

7 checks are performed (aligned with gen-dns-auth check):

CheckDescription
A (domain)Domain A record should resolve to outbound IP
A (mail)mail.<domain> A record should resolve to outbound IP
MXMX record should point to mail.<domain>
SPFTXT record should start with v=spf1
DKIMTXT record should start with v=DKIM1
DMARCTXT record should contain v=DMARC1
PTRReverse DNS of IP should return domain or mail.<domain>