Skip to main content

DNS Record Builder

Build DNS records visually. Select a record type, fill in the fields, and get the zone file format line plus a dig command to verify propagation. Covers A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, and PTR records.

✓ 60K+ developers trust DevPlaybook ✓ Runs 100% in your browser ✓ 9 record types

Frequently Asked Questions

What is the difference between A and CNAME records?▼

An A record maps a hostname directly to an IPv4 address (e.g. example.com → 93.184.216.34). A CNAME record creates an alias that points to another hostname, which must itself resolve to an IP (e.g. www.example.com → example.com). You cannot use a CNAME at the root/apex domain (@ or example.com) because it would conflict with SOA/NS records. Use an A record there, or ALIAS/ANAME records if your DNS provider supports them.

What is TTL and what value should I use?▼

TTL (Time To Live) is how long DNS resolvers cache your record before checking for updates. Low TTL (60-300s) = faster propagation of changes but more DNS queries. High TTL (3600-86400s) = faster lookups for clients, less DNS traffic, but slow propagation when you update. Before a planned migration, lower your TTL 24-48 hours in advance so the change takes effect quickly on cutover day.

How do I set up email authentication (SPF, DKIM, DMARC)?▼

SPF: add a TXT record at your root domain with 'v=spf1 include:_spf.yourprovider.com ~all'. DKIM: add a TXT record at 'selector._domainkey.yourdomain.com' with the public key from your email provider. DMARC: add a TXT record at '_dmarc.yourdomain.com' with 'v=DMARC1; p=quarantine; rua=mailto:[email protected]'. All three together protect your domain from email spoofing.

What does the trailing dot mean in DNS records?▼

A trailing dot (e.g. example.com.) marks the domain as a fully qualified domain name (FQDN) — an absolute domain from the DNS root. Without the dot, some DNS servers treat it as relative to the current zone origin and may append the zone name, causing incorrect resolution. When entering target values for CNAME, MX, NS, and SRV records, always use the trailing dot for safety.

What are CAA records and do I need them?▼

CAA (Certification Authority Authorization) records specify which Certificate Authorities (CAs) are allowed to issue SSL/TLS certificates for your domain. Without CAA records, any CA can issue a cert for your domain. With CAA records, if a CA sees it's not listed, it will refuse to issue — providing an extra layer of protection against mis-issuance. If you use Let's Encrypt, add: 0 issue 'letsencrypt.org'.

How do I verify a DNS change with dig?▼

Run 'dig yourdomain.com A' to look up an A record. Add '+trace' for full recursive resolution. Use '@8.8.8.8' to query Google's DNS specifically (e.g. dig @8.8.8.8 yourdomain.com TXT). Use 'dig +short' for a clean one-line answer. DNS changes can take minutes to 48 hours to propagate worldwide — check multiple resolvers to confirm.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →