DKIM / SPF / DMARC Record Builder and Validator - Email Authentication DNS TXT Record Generator

First Published:
Last Updated:

Build and validate SPF, DKIM, and DMARC DNS TXT records for SES, Google Workspace, Microsoft 365 — entirely in your browser, with Route 53 / BIND ready output.

Features

  • Visual SPF Builder: Add, reorder (drag & drop), and configure mechanisms (include, a, mx, ip4, ip6, exists, redirect, all) with qualifiers (+, -, ~, ?).
  • SPF Lookup Counter: Live count of DNS lookups consumed by your SPF record (RFC 7208 §4.6.4 limit: 10).
  • SPF Validator: Diagnose v=spf1 presence, qualifier validity, IPv4/IPv6 syntax, duplicate redirect, missing all, deprecated ptr, and lookup-count overruns.
  • DKIM Builder: Generate a DKIM TXT record from an RSA public key (PEM). Automatically chunks the value into 255-byte segments for DNS TXT.
  • RSA Key Strength Detection: Inline ASN.1 parser reads the SubjectPublicKeyInfo modulus and reports the actual bit length (1024 / 2048 / 4096) — flags weak keys.
  • DKIM Validator: Parses each tag (v, k, h, s, t, p, n, g) and warns on weak hashes, deprecated tags, and revoked selectors.
  • DMARC Builder: Compose p, sp, pct, adkim, aspf, fo, ri, and rua/ruf reporting addresses with mailto normalization.
  • DMARC Validator: Catches invalid policy values, missing v/p, malformed mailto: entries, and out-of-range pct.
  • Combined Health Check: Single-page A–F grade for all three records, with a prioritized action plan.
  • Route 53 / BIND Output: Each builder emits both quoted Route 53-ready values and BIND zone lines, ready to copy & paste.
  • Presets: One-click templates for Google Workspace, Amazon SES, Microsoft 365, SendGrid, and DMARC monitor / quarantine / reject postures.
  • Local-Only History: The last 5 validations are stored in browser localStorage for quick reload — never sent anywhere.
  • 100% Client-Side: No fetch, no XMLHttpRequest, no DNS queries. The tool works fully offline once loaded.

How to Use

  1. Pick a tab: SPF, DKIM, DMARC, or Domain Health Check.
  2. Build: Use the form to compose a new record. The output, Route 53 value, and BIND zone line update live.
  3. Validate: Paste an existing record into the validator. Surrounding quotes (Route 53 / BIND format) are automatically stripped.
  4. Inspect DKIM keys: The DKIM validator decodes the embedded RSA public key, reports the bit length, and flags keys below 2048 bits.
  5. Combined check: On the Domain Health Check tab, paste all three records (or click "Load From Other Tabs") and get an A–F grade with concrete next steps.
  6. Copy: Use the per-output Copy buttons. Route 53 values are quoted; BIND values are emitted as zone-file lines.
  7. Verify: After deploying, run dig TXT example.com, dig TXT selector._domainkey.example.com, and dig TXT _dmarc.example.com to confirm propagation.

Important Notes

  • This tool builds and validates record syntax offline in your browser. It does not query DNS. Always verify deployed records using dig TXT or your DNS provider's interface.
  • The DKIM builder accepts the public key only. Generate the key pair on your mail provider (SES / Google Workspace / Microsoft 365) — never paste the private key into a web tool.
  • SPF DNS lookups (RFC 7208 §4.6.4): include, a, mx, exists, ptr, and redirect each count toward the 10-lookup limit. ip4 and ip6 do not.
  • The ptr mechanism is deprecated by RFC 7208 §5.5 — avoid using it.
  • For DMARC, start with p=none and a rua mailbox. Analyze aggregate reports for at least two weeks before promoting to p=quarantine, then to p=reject.
  • DMARC reporting from external domains requires the receiving domain to publish a _report._dmarc.<reporter> authorization record — outside the scope of this tool.
  • This tool focuses on syntax and best-practice diagnostics — it does not perform cryptographic verification of DKIM signatures or SPF evaluation against a sample message. Use opendkim-testkey, swaks, or your provider's diagnostics for end-to-end testing.
  • For an end-to-end walkthrough on AWS, see the related blog post: Setting up DKIM, SPF, and DMARC for Amazon SES with Route 53.
  • Specifications referenced (linked for convenience — the tool itself does not fetch any URL):

References:
Tech Blog with curated related content
Web Tools Collection

Written by Hidekazu Konishi