Skip to main content
Back to Dev generators

Dev

Mock DNS Record Generator

Used by developers, writers, and creators worldwide.

A mock DNS record generator produces example DNS records — A, AAAA, CNAME, MX, and TXT — with types and values that correctly match. DNS records map domain names to addresses and services, and each record type has a specific value format: an A record points to an IPv4 address, an MX record names a mail server with a priority, a TXT record holds a quoted string. This tool builds records where the value always fits the type, so the examples are realistic rather than nonsensical. Choose how many you want and copy them into a zone file or test. It is ideal for documentation, testing DNS-parsing code, and learning record types. Because each record pairs the right value with its type, you can trust the examples while you study or build. Adapt the names and values to your own zone before using them for real.

Loading usage…

Free forever — no account required

How to use

  1. Choose your options above
  2. Click Generate
  3. Copy your result

Detailed instructions

  1. Choose how many records you want.
  2. Click Generate to produce DNS records.
  3. Use them in docs or tests.
  4. 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.