← All text tools

DNS Zone File Generator

Enter A, AAAA, CNAME, MX, TXT, NS, SRV and CAA records and get a valid BIND zone file with SOA record, serial number and checks.

  • Free
  • No sign-up
  • Works on any device

About DNS Zone File Generator

Writes a BIND zone file from plain lines such as @ A 192.0.2.10 or @ MX 10 mail. Enter the zone name, primary name server, admin email (turned into the SOA form hostmaster.example.com.) and serial, then list A, AAAA, CNAME, MX, TXT, NS, SRV, CAA and PTR records. The tool checks IP addresses, blocks a CNAME at the apex or next to other records, splits TXT values over 255 characters, warns about names missing the trailing dot and adds the SOA with its timers. Run named-checkzone before loading the file.

How to use DNS Zone File Generator

  1. Type the zone name, name server, admin email and serial number.
  2. List your records, one per line, as name, optional TTL, type and value.
  3. Fix anything the checks report, then copy or download the zone file and test it with named-checkzone.

Why use this tool?

Also known as

Frequently asked questions

Why does a name need a trailing dot?

In a zone file a name without a final dot is relative and gets the zone name appended, so mail.example.com inside example.com becomes mail.example.com.example.com. The tool can add the dot when the name ends with your zone.

What should the serial number be?

Any number that rises with every change. The common habit is the date plus a counter, such as 2024010101. Secondary servers copy the zone only when the serial is higher than theirs.

Can a CNAME sit at the root of the domain?

No. A CNAME cannot share a name with other records, and the apex always has SOA and NS records. Use A and AAAA records there, or an ALIAS or ANAME feature if your DNS provider offers one.

Is DNS Zone File Generator free?

Yes. DNS Zone File Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.