Free Tool

DNS Record Generator

Tick the services that send your email and get one merged SPF record, a DMARC record and a dated plan to move from monitoring to reject. DKIM hosts are listed for every provider you use.

Domain

The domain in your From address.

Who Sends Your Mail

Tick every service, including the ones only your website or app uses. A missing sender fails SPF.
Space separated. Paste account specific includes here.
IPv4 or IPv6, CIDR allowed.
Either works once DMARC enforces. Soft fail is the safer start.

DMARC

Where daily aggregate reports go. A shared mailbox or a DMARC report service.
weeks
Enter your domain and tick the services that send your mail. The records build as you go.

Free, no signup. Runs in your browser, nothing you type leaves this page.

Every result has a shareable link.

What This Generator Builds

Three DNS records decide whether receiving servers trust email from your domain. SPF lists the servers allowed to send for you. DKIM publishes a public key so receivers can verify each message's signature. DMARC tells receivers what to do when a message fails and where to send reports. This tool builds the SPF and DMARC records for you, lays out a dated DMARC rollout, and shows exactly where each provider's DKIM record goes.

How The SPF Record Is Built

A domain may publish only one SPF record. When a business adds Google Workspace, then a newsletter tool, then an app sender, the usual mistake is a second v=spf1 record for each one. Receivers treat two SPF records as a permanent error and SPF fails for everything. The generator merges every sender you tick into a single record:

  1. Your own server IPs go first as ip4: and ip6: mechanisms. They cost no DNS lookups.
  2. Each provider adds its published include, such as include:_spf.google.com for Google Workspace or include:spf.protection.outlook.com for Microsoft 365.
  3. Any custom includes you paste are added, with duplicates removed.
  4. The record ends with ~all or -all, your choice.

The 10 Lookup Limit

RFC 7208 caps SPF at 10 DNS lookups. Every include costs one, and so does every include nested inside the provider's own record. Google Workspace costs four on its own, because _spf.google.com includes three more records. The generator counts what it can know for certain and labels the total "at least", because providers change their nested records without notice. After you publish, run the Email Deliverability Checker on the domain to get the live recursive count.

Providers That Live On A Subdomain

Some services do not belong in your root SPF at all. Resend verifies a send subdomain with its own SPF and MX records. Amazon SES checks SPF on a custom MAIL FROM subdomain, so include:amazonses.com goes on that subdomain, not the root. The generator outputs those records separately. Mailgun also recommends a sending subdomain, and HubSpot issues an account specific include you paste into the custom field.

DKIM: Why There Is No Record To Copy

A DKIM key pair is generated by the service that signs your mail. The private key stays with them and the public key goes in your DNS. No outside tool can generate it for you. What is predictable is where it goes: selector._domainkey.yourdomain.com. Google uses the selector google, Microsoft 365 uses selector1 and selector2 as CNAMEs, SendGrid uses s1 and s2, Mailchimp uses k2 and k3. The table under the result lists the host, record type and the screen in each dashboard where the value lives.

DKIM matters more than most people think. On third party platforms SPF often checks the platform's own bounce domain, not yours, so it cannot align with your From address. A DKIM signature on your domain is usually what makes DMARC pass.

The DMARC Rollout Schedule

Publishing p=reject on day one is how businesses block their own invoices. The safe route is staged, and the generator dates every step from your start date:

  • Monitoring. p=none with a rua address for the number of weeks you choose. Reports arrive daily from Google, Microsoft, Yahoo and others, listing every server sending as your domain and whether it passed.
  • Quarantine. p=quarantine at pct=10, then 25, 50 and 100. Failing mail goes to spam for that share of messages.
  • Reject. p=reject at 25, 50 and finally 100. Under RFC 7489, the share not covered by pct gets the next lower policy, so rejected mail that falls outside the percentage is quarantined instead.

The dates are a plan, not a timer. Advance a step only when the reports show every legitimate sender passing. The DMARC revision under way at the IETF replaces pct with a simpler testing flag. Receivers honour pct today, and the schedule still works if you change the tag later.

Mistakes To Avoid

  • Forgetting a sender. The booking system, the invoicing tool and the website contact form all send mail. Each needs to be in SPF or signing with DKIM, ideally both.
  • Using +all. It authorises every server on the internet.
  • Leaving DMARC on p=none forever. It reports, but it stops nothing.
  • Sending reports to an inbox nobody reads. Use a shared mailbox or a report service that summarises them.

For Agencies

Build the records for each client in a few minutes, share the result link for approval, then download the full set for whoever manages their DNS. Wise Media starts every email engagement this way, because no campaign result is reliable until authentication is right.

Fix What This Measured

Email Marketing Agency Course

The Email Marketing Agency Course covers what happens after the records go live: reading DMARC reports, splitting campaign and app mail onto subdomains, warming a new domain, and selling deliverability setup as a fixed price service.

Rather Not DIY It?
Let Wise Media Build It.

The tool shows the gap. The studio closes it: brand, site, app and AI, then the ads, email, content and search that turn them into revenue.

Website Development

Custom sites with one job per page, built fast for phones, search and AI answers.

From $3,000CAD one timeSee Website Development

App Development

Web apps, portals and dashboards on Next.js, Supabase and Stripe, installable on any phone.

From $5,000CAD one timeSee App Development

Paid Advertising

Meta, Google and TikTok campaigns built on the offer and page first, reported as one number.

From $750CAD per monthSee Paid Advertising
wisemedia.io #1

SEO & AI Search

Rank in Google, get named by ChatGPT and Gemini, and convert the visit after the click.

From $350CAD per monthSee SEO & AI Search
Aa

Brand Identity

Positioning, logo suite, colour, type and the guide that keeps it consistent.

From $750CAD one timeSee Brand Identity

AI Agents & Automation

Custom AI agents, LLM features and n8n automation connected to the tools you already use.

From $1,000CAD one timeSee AI Agents & Automation

Content Production

Short form video, carousels and AI clone content produced on a weekly calendar.

From $750CAD per monthSee Content Production
3

Email Marketing

Campaigns written and sent, lifecycle flows and SMS, every send tied to revenue.

From $350CAD per monthSee Email Marketing

Website Care

Updates, daily backups, monitoring, edits and search maintenance handled every month after launch.

From $100CAD per monthSee Website Care
MFADMARCBackupsTraining

Cyber Security

Email, accounts, staff devices and company data protected, with the documents your insurer asks for.

From $250CAD per monthSee Cyber Security

DNS Record Generator Questions

Straight answers on using it and acting on the result.

Quick Answer

How Do I Create SPF, DKIM And DMARC Records?

Merge every sending service into one SPF TXT record on your root domain and keep it within 10 DNS lookups. Publish the DKIM key each provider generates at selector._domainkey on your domain. Add a DMARC TXT record at _dmarc starting with p=none and a report address, then move to quarantine and reject in stages.

  • SPF. One record per domain, 10 lookup limit
  • DKIM host. selector._domainkey.yourdomain.com
  • DMARC path. none, then quarantine, then reject

FAQ

Frequently Asked Questions

No. RFC 7208 allows one SPF record per domain. Two or more cause a permanent error and SPF fails for every message. Merge all your senders into one record, which is exactly what this generator does.

Put both includes in a single record: v=spf1 include:_spf.google.com include:servers.mcsv.net ~all. Tick both services above and the generator writes it for you, counts the DNS lookups, and warns you if the total gets close to the limit of 10.

Start with v=DMARC1; p=none; rua=mailto: followed by a mailbox you read. It changes nothing about delivery but sends you reports on every server using your domain, which you need before enforcing.

Until the reports show every legitimate sender passing SPF or DKIM with alignment. For a small business that is often a few weeks. The generator defaults to four as an example; change it to suit your reports.

It is selector._domainkey.yourdomain.com, where the selector is set by the provider: google for Google Workspace, selector1 and selector2 for Microsoft 365, s1 and s2 for SendGrid, k2 and k3 for Mailchimp.

Resend verifies a send subdomain with its own SPF record and MX record, so its mail is authorised there, not on your root. The generator outputs those subdomain records separately when you tick Resend.

Both work once DMARC enforces. ~all is the safer start because a missed sender is marked suspicious rather than failed outright. Move to -all when you are confident every sender is listed.

No. It builds the records in your browser for you to copy into your DNS provider. Nothing is published or stored unless you download the file and enter your email.

Rather Have It
Done For You?

Wise Media builds and runs this for clients. Thirty minutes with Cody: the bottleneck named, the fix scoped, the price on the table.