Dev
Mock DNS Record Generator
Explaining DNS to a new team member or writing a zone-file guide is much clearer with concrete examples that pair the right value type with each record type. An A record pointing to a quoted string, or an MX record without a priority, is not just wrong — it obscures the lesson. This tool generates records where the value always matches the type. Choose how many records you want, from 1 to 10. The generator picks randomly from five record types: A (IPv4 address), AAAA (IPv6 address), CNAME (canonical name alias), MX (mail exchanger with priority 10), and TXT (SPF-style quoted string). Subdomains are drawn from @, www, api, mail, app, cdn, blog, and shop. TTL values are 300, 3600, or 86400 seconds. All records use example.com as the base domain. Copy the records into a tutorial, a zone-file documentation example, or a DNS-parsing test fixture. Because each record pairs a type-correct value, you can use the output to verify that your parsing code handles each record type without hardcoding test data by hand. Adapt the subdomains, addresses, and values to your own zone before applying anything to a live domain.
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Choose how many records you want.
- Click Generate to produce DNS records.
- Use them in docs or tests.
- Adapt the values to your own zone.
Use Cases
- •Documenting a DNS zone configuration
- •Testing DNS record parsing
- •Learning DNS record types
- •Seeding example zone-file data
- •Demoing a DNS setup
Tips
- →A records point to IPv4 addresses.
- →MX records carry a priority number.
- →TXT values are quoted strings.
- →Adapt examples before real use.
FAQ
what do the DNS record types mean
An A record maps a name to an IPv4 address and AAAA to IPv6; CNAME aliases one name to another; MX names a mail server with a priority; and TXT holds arbitrary text, often for verification or SPF. Each type has its own value format.
do the values match the record types
Yes. Each record pairs a value that genuinely fits its type — an IP for an A record, a quoted string for TXT, a prioritised host for MX — so the examples are realistic and correct rather than randomly mismatched.
can I use these records directly
They are examples pointing at example domains, not live configuration. Use them to learn, document, or test parsing, then adapt the names, addresses, and values to your own zone before applying anything to a real domain.
You might also like
Popular tools from other categories that share themes with this one.
Try these next
More free tools from other corners of the catalog, picked by shared themes.