DNS Zone File Generator

Build a complete BIND-format DNS zone file with SOA, NS, A, MX and other records.

Frequently Asked Questions

What is a DNS zone file?

A DNS zone file is a text file in BIND format (RFC 1035) containing all DNS records for a domain. It begins with a $TTL directive and an SOA record, followed by NS records, and then all other records (A, AAAA, MX, TXT, CNAME, etc.). Zone files are the standard format used by authoritative DNS servers and are used when migrating DNS between providers or setting up self-hosted nameservers.

What do I do with the generated zone file?

You can import the generated zone file into any BIND-compatible DNS server or DNS hosting provider that supports zone file imports. Popular providers like Cloudflare, Route 53, and most cPanel-based hosting control panels support zone file import. Check your DNS provider's documentation for the import option — it is usually found in the DNS management section. Always review the generated file before importing to confirm all records are correct.

What are glue records and should I include them?

Glue records are A records for nameservers that are within the same domain they serve. For example, if ns1.example.com is a nameserver for example.com, a chicken-and-egg problem occurs — you need to know example.com's nameserver to resolve ns1.example.com. Glue records, stored in the parent TLD zone, break this cycle by providing the IP addresses of nameservers directly. Include them only when your nameservers are subdomains of the domain you are managing.

What is the SOA serial number and why does it matter?

The SOA serial number is a version counter for the DNS zone. Secondary nameservers compare their serial against the primary's — a higher primary serial triggers a zone transfer to fetch updated records. The recommended format is YYYYMMDDNN (year, month, day, two-digit increment), e.g. 2024061501. Every time you modify DNS records, increment the serial number. Failing to increment it means secondary nameservers will not fetch your updates.