DNS Record Generator for A, CNAME, MX, TXT & SPF
Generate standard BIND-style DNS zone records for A, AAAA, CNAME, MX, TXT, and SPF.
Output will appear here
Click in the output to select all text
Related tools
IP Address Validator (IPv4 & IPv6)
Validate IPv4 and IPv6 addresses and classify as public, private, or loopback.
MAC Address Validator & Formatter
Validate MAC addresses and reformat between colon, hyphen, and dot-separated notation.
IP CIDR Subnet & Range Calculator
Calculate network IP, broadcast IP, netmask, wildcard mask, and usable host count from CIDR.
SSL / X.509 Certificate Info Decoder
Decode and inspect PEM-encoded X.509 certificates (subject, issuer, validity, SANs).
MIME Type & Content-Type Directory
Find MIME types by file extension or file extensions by Content-Type header.
This DNS record generator helps you build correctly formatted BIND-style zone records - including A, AAAA, CNAME, MX, TXT, and SPF - without memorizing exact syntax or priority ordering rules. It's built for sysadmins configuring a new domain, developers setting up email authentication, and anyone who's ever fat-fingered an SPF record and broken outbound mail delivery. Instead of hand-writing a dns record from a half-remembered example, you fill in the relevant fields (hostname, value, priority, TTL) and get a properly formatted record ready to paste into your DNS provider's console or a zone file. It's especially useful for getting an spf record generator result right the first time, since malformed SPF syntax is a common cause of email deliverability problems. Generation happens entirely in your browser - no domain data is ever transmitted or logged. Fill in the record type and details below to generate your DNS entry instantly.
Features
- Generates A and AAAA records for IPv4/IPv6 hosts
- Builds CNAME alias records with correct target formatting
- Creates MX records with configurable priority values
- Generates TXT records, including SPF policy strings
- Validates hostname and value formatting before output
- Shows records in standard BIND zone file syntax
- Supports custom TTL values
- Copy-to-clipboard for pasting into DNS provider consoles
Why use this dns record generator (a, cname, mx, txt, spf)?
- Instant record generation with no manual syntax lookup
- Fully private - domain and hosting details never leave your browser
- Accurate formatting that follows standard DNS record conventions
- Reduces risk of email deliverability issues from malformed SPF/TXT records
- Completely free with no signup
Frequently asked questions
What is an SPF record and why does formatting matter?
An SPF record is a TXT record that lists which mail servers are authorized to send email for your domain; incorrect syntax can cause receiving servers to reject or flag your mail as spam.
What's the difference between an A record and a CNAME record?
An A record points a hostname directly to an IPv4 address, while a CNAME points a hostname to another hostname (an alias), which is then resolved separately.
How does MX record priority work?
Lower priority numbers are preferred; mail servers attempt delivery to the MX record with the lowest number first, falling back to higher numbers if delivery fails.
What is a typical TTL value for a DNS record?
Common TTL values range from 300 seconds (5 minutes) for records you expect to change soon, up to 86400 seconds (24 hours) for stable records.
Can a domain have multiple TXT records?
Yes, a domain can have multiple TXT records, but only one SPF-type TXT record is recommended per domain to avoid conflicting policy results.
What is an AAAA record?
An AAAA record is the IPv6 equivalent of an A record, mapping a hostname to an IPv6 address instead of an IPv4 address.
Does this tool submit records directly to my DNS provider?
No, it only generates the correctly formatted record text for you to copy and paste into your DNS provider's control panel or zone file.
Can I generate a CNAME record for a subdomain?
Yes, you can generate CNAME records for any subdomain pointing to another hostname, such as a CDN or third-party service.