Skip to main content
Back to Dev generators

Dev

Fake DNS Record Generator

Writing DNS zone files by hand is tedious — one missing trailing dot or malformed MX priority breaks your parser or BIND validator instantly. The fake DNS record generator produces valid, BIND-formatted A, CNAME, MX, and TXT records for any domain you specify, with realistic TTL values and rdata fields including SPF and DMARC strings. Two inputs drive the output. The base domain field sets the zone origin — replace example.com with acme-test.internal or staging.myapp.io and every record uses your domain. Record count (2–20) controls how many entries appear, mixing A, CNAME, MX, and TXT types. TTLs rotate through 300, 900, 1800, and 3600. Paste the output into a BIND parser, a Terraform Route 53 module, or a mock AWS Route 53 response.

Read the complete guide — 4 min read

How to use

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

Detailed instructions

  1. Enter your target domain in the Domain field (e.g., acme-internal.io) to set the zone origin for all records.
  2. Set the Number of Records to match your testing needs — use 8 for quick parser tests, higher counts for stress tests.
  3. Click Generate to produce the zone file entries with varied record types, TTLs, and realistic rdata values.
  4. Copy the output and paste it directly into your parser, test fixture file, documentation block, or zone import tool.
  5. Re-click Generate to produce a fresh set with different hostnames and IPs each time you need non-duplicate test data.

Use Cases

  • Testing a Go or Python BIND zone-file parser against all four record types with realistic rdata
  • Populating README examples for a Terraform Route 53 or Cloudflare provider module
  • Mocking AWS Route 53 API responses in Postman collections or Jest integration tests
  • Generating per-session lab data for DNS administration workshops so every student cohort gets a fresh zone
  • Adding believable DNS output samples to runbooks and Confluence pages without redacting production records

Tips

  • For parser edge-case testing, generate two batches and concatenate them — this creates repeated subdomains with different TTLs, which parsers often handle incorrectly.
  • Use a .internal TLD (e.g., corp.internal) as your domain when generating records for private network documentation so readers immediately know the data is non-public.
  • If your test suite checks MX priority handling, generate 10+ records — the varied priority values across multiple MX entries will reveal ordering bugs in your code.
  • Pair the generated SPF TXT records with a DMARC checker tool to verify your security scanner correctly parses both policy types from the same zone.
  • When writing Terraform or Pulumi examples, generate 5 records and use one of each type — A, CNAME, MX, TXT — to show the full range of your DNS module's capabilities.
  • Avoid using the default example.com domain in committed documentation; swap it for a domain you own or a clearly fake TLD like .example to prevent confusion.

FAQ

what dns record types does this generator produce

The generator outputs A records with plausible IPv4 addresses, CNAME records pointing to realistic subdomains, MX records with numeric priority values and mail server hostnames, and TXT records including SPF (v=spf1) and DMARC (v=DMARC1) entries. These four types simulate a believable zone file for parser and validator testing.

is the output valid bind zone file format

Yes. Every record follows the standard five-field layout: owner name, TTL, class (IN), type, and rdata. Owner names include trailing dots where required. TTL values sit in realistic ranges like 300, 900, and 3600 seconds, so the output drops straight into a BIND-compatible parser without reformatting.

can I use a custom domain instead of example.com

Yes — type any domain into the Base Domain field, such as acme-test.internal or staging.myapp.io, and every generated record will use it as the zone origin. Useful when your test environment asserts on specific domain names and example.com would break those assertions.

can the generator produce AAAA or SRV records

No — the generator outputs only A, CNAME, MX, and TXT records. AAAA (IPv6), SRV, PTR, CAA, and NS records are not supported. If your parser needs those types, you'll need to hand-author them or use a dedicated zone file tool.

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.