About this tool
Authoritative DNS records are short, easy to mis-type and unforgiving when you get them wrong: a stray space in an SPF include, a missing period after an MX host, or an unescaped semicolon in DKIM all turn into silent delivery failures that show up only when legitimate mail bounces days later. This generator builds the five record types most operators actually configure — SPF (TXT), DKIM (TXT), DMARC (TXT), CAA and MX — from a dropdown plus a per-type form, so the structure of each line matches what every DNS console (Cloudflare, Route 53, GoDaddy, Tencent DNSPod, Alibaba Cloud DNS) expects. SPF gets one-click include presets for Google Workspace, Microsoft 365, Zoho, Tencent Enterprise Mail and Alibaba Enterprise Mail plus a multi-line extras field and a -all vs ~all policy toggle. DKIM takes the selector and the public key p= string your mail provider gave you. DMARC covers the p=none/quarantine/reject policy, a rua aggregate-report mailbox and the optional pct threshold. CAA encodes flags, an issue or issuewild type tag and the CA domain. MX pairs a priority with a destination host, with provider presets that fill in the right values for the same five mail providers. Each field has a one-line explanation right above it, so you learn what every tag does while you fill the form. Generation runs entirely in the browser — your domain, DKIM key and provider choice never leave the tab.
How to use DNS Record Generator
- Pick a record type from the dropdown — SPF, DKIM, DMARC, CAA or MX — to load the matching form.
- Fill in the fields for that type. Provider presets like Google Workspace fill the include list with the correct include: string for SPF, and the priority-plus-host pair for MX.
- Read the live previewed host and value fields, or press Build record to copy a polished output.
- Copy the value and paste it into your DNS provider's record editor, then verify with dig / nslookup / an online DNS lookup tool.
Frequently asked questions
Why do SPF records need include: presets?
SPF works by listing the IP addresses and hostnames allowed to send mail for your domain. Mail providers publish those addresses under their own domains (e.g. _spf.google.com for Google), and your SPF record references them via include: mechanisms. The preset buttons fill in the correct include string for each provider — they are not magic, just the values those providers publish.
What is -all vs ~all in SPF?
~all is a soft fail: messages that fail SPF are accepted but flagged. -all is a hard fail: those messages are rejected outright. Start with ~all while you verify configuration, then tighten to -all once you are confident every legitimate sender is in the allow list.
Can I use multiple MX records with different priorities?
Yes — but with this single-record tool. Most setups use one or two MX hosts. If you need a backup MX, build it as a separate record with a higher number (lower priority). Most providers ship guidance with the exact priority to use, e.g. 10 for primary, 20 for secondary.
Is the DKIM private key ever needed?
No. The DKIM record holds only the public half of the key pair, and your mail server holds the private half. The mail server signs each outgoing message with the private key, and the recipient verifies the signature against the public key published in this DNS record.