DNS Zone Record Generator – A, MX, CNAME & TXT | NetworkUstad

Adding a DNS record by hand is where small syntax slips cause long outages: a missing trailing dot turns a hostname into a relative name, a priority number in the wrong place breaks mail routing, and a TXT value without quotes fails verification. This generator removes that guesswork. Fill in the fields for the records you need and it writes zone-file syntax in the standard form, ready to paste into your DNS provider or zone file. It builds records; it does not publish them or look anything up, so you stay in control of what actually goes live.

Quick Answer: Enter your domain and the record values, then click Build Records to get paste-ready zone syntax.

Free Online Tool

DNS Zone Record Generator

Build correct A, AAAA, CNAME, MX, and freeform TXT record syntax from form fields.

How to Use the DNS Zone Record Generator

  1. Type your domain name without a trailing dot.
  2. Fill in the A or AAAA address if you are pointing the domain at a server.
  3. Add the MX host and priority if you are setting up mail.
  4. Add a CNAME target for a subdomain alias, or a TXT value for verification.
  5. Click Build Records.
  6. Copy the generated lines into your DNS provider, checking each value once before saving.

Key Features

  • Generates A, AAAA, CNAME, MX, and TXT records in one pass.
  • Adds trailing dots where zone syntax requires them.
  • Omits records you leave blank, so no placeholder lines appear.
  • Keeps MX priority attached to the correct host.
  • Shows each record on its own line for easy copying.
  • Runs entirely in the browser; nothing is published or sent anywhere.

What the Result Means

Each generated line is one complete record: the name, the class, the type, and the value. A trailing dot marks a name as fully qualified, which stops the DNS server from appending your domain to it again. The MX priority is a preference, not a port: lower numbers are tried first, so 10 beats 20. If a line looks wrong, the fix is in the field you typed, not in the generator, because the tool copies your values exactly and only adds the syntax around them.

Worked Example

For example.com hosted at 93.184.216.34 with mail at mail.example.com, the tool produces an A line for the apex, an MX line with priority 10 pointing at the mail host, and a CNAME line sending www to the apex. A verification TXT line carries the value exactly as typed. Pasting those four lines gives a working website plus working mail, and each line can be checked against the provider preview before saving, which is where most typos get caught. The same generator also handles a subdomain alias cleanly: a CNAME for shop pointing at the main store host means the shop address follows the store wherever it moves, without a second A record to keep in sync.

Best Practices and Tips

  • Double-check IP addresses before saving an A record; a typo points your domain at a stranger server.
  • Use a low TTL while testing a change, then raise it once the record proves correct.
  • Keep the apex domain A record and the www CNAME consistent with each other.
  • For TXT verification values, copy from the provider exactly, including any quotes it shows.
  • After saving, wait for propagation and verify with a DNS lookup tool.

Common Mistakes to Avoid

  • Forgetting the trailing dot and letting the server append the domain twice.
  • Putting the MX priority after the hostname instead of before it.
  • Creating a CNAME at the apex domain, which the standard forbids alongside other records.
  • Pasting a TXT value with smart quotes copied from a word processor.

Frequently Asked Questions

What is the difference between A and CNAME?

An A record points a name at an IP address. A CNAME points a name at another name, which then resolves onward.

Why does the MX record need a priority?

So mail servers know which host to try first. If the first host is down, they fall back to the next priority.

Can I use this for subdomains?

Yes. Put the subdomain in the name field of the record you need, or use the CNAME field for an alias.

Does this publish the records?

No. It only writes the syntax. You paste it into your DNS provider to publish.

Related Tools