DNS CNAME, MX & TXT Record Generator — With Conflict Checks
Build prioritized MX mail server records, CNAME aliases & TXT verification entries.
| Input | Owner | TTL | Type | RDATA |
|---|---|---|---|---|
10 mx1.example.net | example.com. | 3600 | MX | 10 mx1.example.net. |
20 mx2.example.net | example.com. | 3600 | MX | 20 mx2.example.net. |
newsletter 0 . | newsletter.example.com. | 3600 | MX | 0 . |
www example.com.cdn.example.net | www.example.com. | 3600 | CNAME | example.com.cdn.example.net. |
shop shops.example.org | shop.example.com. | 3600 | CNAME | shops.example.org. |
mail mail-host | mail.example.com. | 3600 | CNAME | mail-host.example.com. |
v=spf1 include:_spf.example.net -all | example.com. | 3600 | TXT | "v=spf1 include:_spf.example.net -all" |
_dmarc v=DMARC1; p=quarantine; rua=mailto:[email protected] | _dmarc.example.com. | 3600 | TXT | "v=DMARC1; p=quarantine; rua=mailto:[email protected]" |
newsletter v=spf1 -all | newsletter.example.com. | 3600 | TXT | "v=spf1 -all" |
A one-label target (e.g. mail-host) is relative to the zone domain; a dotted name is written in full with its final dot, so it never gets the zone domain appended twice. Mail server "." means a null MX (the domain takes no mail).
When to use the DNS CNAME, MX & TXT Record Generator
CNAME conflicts prevented
A CNAME must stand alone: not at the zone domain (@) and not sharing a name with an MX, TXT or another CNAME (RFC 1034, RFC 2181). Offending lines are refused with the reason, because DNS servers refuse them too.
Correct MX records
The mail server must be a host name, not an IP address, and should not be a CNAME alias (RFC 2181 §10.3). A null MX with a dot target marks a domain that takes no mail, and it must be the only MX at that name (RFC 7505).
Long TXT split correctly
Text longer than 255 bytes, such as DKIM keys or long SPF records, is split into several 255-byte strings with correct escaping, UTF-8 characters counted by byte.
SPF and DMARC checked
Two SPF records at one name are refused because they make every check fail, and a record at _dmarc that does not start with v=DMARC1 gets a warning.
Frequently asked questions
How do I write an MX for the main domain?
Just write the preference and server, such as 10 mx1.example.net. The @ name is used automatically when a line starts with a number.
Why is a CNAME at @ refused?
The zone domain always has SOA and NS records, and a CNAME cannot sit beside other records. Use A/AAAA records, or your DNS provider's CNAME flattening/ALIAS feature.
What does the MX preference mean?
Lower numbers are tried first. Servers with the same number share the load, and higher numbers act as backups.
How do I write spaced text at @?
Put it in quotes, such as "hello world". Without quotes, the first word is taken as the record's owner name.
Is my data sent to a server?
No. Records are built and checked in your browser.
Similar tools
- DNS Propagation Checker (Cloudflare, Google, Quad9 & DNS.SB)Query Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.9 & DNS.SB concurrently with latency & TTL.
- Real-Time DNS Record Lookup (A, AAAA, MX, TXT, NS, SOA, CAA)Inspect live DNS zone records (A, AAAA, MX, TXT, NS, CNAME, SOA, CAA) via DoH resolvers.
- Domain WHOIS & RDAP Registration LookupInspect domain registrar, status locks, nameservers and expiry dates via RDAP.
- Reverse DNS (PTR) IPv4 & IPv6 LookupConvert any IPv4/IPv6 to in-addr.arpa / ip6.arpa and query live PTR hostnames via DoH.